我想将我的 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 正是我要找的。