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)
I looked at the scripting guide and it appears you can only use the SaveImage when you ALREADY have an image.
1. Can you save a P-Chart as a image? 2. Is there a way to get the name of the image file that is generated when an HTML is created?
I ask because the ultimate goal is to use another tool (SSIS) to save the image into a database and then retrieve it for use on a dashboard that has other charts from other sources.