Hi all,
Wondering if there is a JSL command group to export a graph to an image or pdf or ppt ?
See "Save Presentation" to save to a PowerPoint format, and Save PDF to save to a PDF.
Look in the Scripting Index for details and example
HI ,
thanks for the pointer.
I used the following commands in JMP15 to save a graph into a pptx file based on a template file. These are from two data tables mean_report & noise_report
mean_report << Save Presentation(path(raw_mean_plot),Template(ppt_template), Outline Titles("None"), "PNG"); noise_report << Save Presentation(raw_mean_plot, Append, "PNG");
the raw_mean_plot is the file path for the pptx file along with file name, similarly ppt_template is the location of the template file along with the file path.
While executing the above, after the first line a windows prompt opens up which requires me to define and store the location of the report file. The second graph is not saved to this ppt report file. I would expect that these commands will help to store the first graph into a template pptx based on the one defined & append the graph from noise_report into the same.
I suggest you start by not using any variable reference, but rather put in the literal hard coded paths, etc and get it to work. Then start substituting in variable references.
You may have to use a Substitute methodology if the Save Presentation does not convert variable values the way you want
Hi Jim,
thanks for responding.
Regarding your points below:
1. I am sure the path is valid. I also tried opening the path from the windows command and it's a valid return. In fact it opens at the same directory in the Save Selection As popup as I had directed in the pptx file path, but somehow can't store on it's own .
2. The template path is definitely valid as the new file stored after the pop up box is in the Template first slide's format.
3. I'm referring to the command reference in help file at https://www.jmp.com/support/help/en/15.0/#page/jmp/display-boxes.shtml#ww2164087 as db<<Save Presentation(<path>, <Template(path)>, <Insert("Begin"|"End"|n)|Replace("Begin"|"End"|n)|Append>, <Outline Titles(title location)>, <format>). Believe this indicates that the PNG is not part of the Outlines Title. Also PNG returns an error while "PNG" is accepted. Similarly "None" or literal None are both accepted.
Essentially I believe the command format is either missing something or not appropriate for JMP15 which seems the case in some of the other issues while scripting. Could you please also point me to Substitute Methodology documenation ?