我想將我的 P-Charts 保存為圖像而不是 html 文件。 我正在通過我正在編寫的應用程序來執行此操作。 下面是我如何生成 P-Chart。
dtP = Control Chart(invisible,
Sample Label( :ReleaseMonth ),
Phase( :Phase ),
Sample Size( :Name( "Sum-Total" ) ),
KSigma( 3 ),
Chart Col( :OnTimePct, P( Phase Level( "1" ), Phase Level( "2" ) ) )
);
dtpr = dtp << report;
這是我到目前為止所做的:
dtpr << saveHTML( thePath || "P_Chart.html" ); // This worked to save the HTML and associated image file
dtpr << SaveImage( thePath || "P_Chart.jpg", jpg ); // This didn't save anything
dtpr << SavePDF( thePath || "P_Chart.pdf" ); // I tried to see what would happen if I tried saving as a PDF. The PDF file saved, but there was a blank PDF chart (i.e. no data was displayed)
我查看了腳本指南,它似乎只有在您已經有圖像時才能使用 SaveImage。
問題:
1. 能否將 P-Chart 保存為圖片?
2. 有沒有辦法獲取創建 HTML 時生成的圖像文件的名稱?
我問是因為最終目標是使用另一種工具 (SSIS) 將圖像保存到數據庫中,然後檢索它以在具有來自其他來源的其他圖表的儀表板上使用。
知道了 - SavePicture 正是我要找的。