Lo tengo - SavePicture es lo que estaba buscando.
Quiero guardar mis gráficos P como imágenes en lugar de archivos html. Estoy haciendo esto a través de una aplicación que estoy escribiendo. Así es como genero el 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;
Esto es lo que he hecho hasta ahora:
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)
Miré la guía de secuencias de comandos y parece que solo puedes usar SaveImage cuando ya tienes una imagen.
Preguntas:
1. ¿Se puede guardar un P-Chart como imagen?
2. ¿Hay alguna forma de obtener el nombre del archivo de imagen que se genera cuando se crea un HTML?
Lo pregunto porque el objetivo final es usar otra herramienta (SSIS) para guardar la imagen en una base de datos y luego recuperarla para usarla en un tablero que tiene otros gráficos de otras fuentes.