Capito - SavePicture è quello che stavo cercando.
Voglio salvare i miei grafici P come immagini anziché come file html. Lo sto facendo attraverso un'applicazione che sto scrivendo. Ecco come posso generare la 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;
Questo è quello che ho fatto finora:
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)
Ho guardato la guida allo scripting e sembra che puoi usare SaveImage solo quando hai già un'immagine.
Domande:
1. Puoi salvare una P-Chart come immagine?
2. C'è un modo per ottenere il nome del file immagine che viene generato quando viene creato un HTML?
Lo chiedo perché l'obiettivo finale è quello di utilizzare un altro strumento (SSIS) per salvare l'immagine in un database e quindi recuperarla per l'uso su un dashboard che ha altri grafici da altre fonti.