<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JSL to export a graph builder to image / ppt / pdf in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373881#M62354</link>
    <description>&lt;P&gt;The mismatch with your findings from my last entry was that I was using the Scripting Index for my syntax, which does not give the literal string options as the Help file does.&amp;nbsp; Sorry about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of the code working.&amp;nbsp; It is without a template.&amp;nbsp;It does not popup any path window.&amp;nbsp; I don't have a template, and my past experience with using the template resulted in never getting it to work....I assume that it is my lack of PowerPoint knowledge for my failure. But the cod does work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv &amp;lt;&amp;lt; report;
raw_mean_plot = "$TEMP/jmp_example4.pptx";
rbiv &amp;lt;&amp;lt; Save Presentation(raw_mean_plot ,outline titles("none"),"PNG") 
rbiv &amp;lt;&amp;lt; Save Presentation(raw_mean_plot, append, "PNG")
Open( "$TEMP/jmp_example4.pptx" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your first example, you specify&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Path(raw_mean_plot)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I assumed you were using Path as a place holder for the actual path.&amp;nbsp; Is that the case?&amp;nbsp; The Path function in JSL is a graphical function.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 10:26:05 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-04-02T10:26:05Z</dc:date>
    <item>
      <title>JSL to export a graph builder to image / ppt / pdf</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373501#M62316</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wondering if there is a JSL command group to export a graph to an image or pdf or ppt ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:10:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373501#M62316</guid>
      <dc:creator>JmpStatistician</dc:creator>
      <dc:date>2023-06-09T22:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: JSL to export a graph builder to image / ppt / pdf</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373534#M62320</link>
      <description>&lt;P&gt;See "Save Presentation" to save to a PowerPoint format, and Save PDF to save to a PDF.&lt;/P&gt;
&lt;P&gt;Look in the Scripting Index for details and example&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:33:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373534#M62320</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-04-01T14:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSL to export a graph builder to image / ppt / pdf</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373596#M62328</link>
      <description>&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;thanks for the pointer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 &amp;amp; noise_report&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mean_report &amp;lt;&amp;lt; Save Presentation(path(raw_mean_plot),Template(ppt_template), Outline Titles("None"), "PNG");

noise_report &amp;lt;&amp;lt; Save Presentation(raw_mean_plot, Append, "PNG");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; I would expect that these commands will help to store the first graph into a template pptx based on the one defined &amp;amp; append the graph from noise_report into the same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 16:50:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373596#M62328</guid>
      <dc:creator>JmpStatistician</dc:creator>
      <dc:date>2021-04-01T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: JSL to export a graph builder to image / ppt / pdf</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373716#M62342</link>
      <description>&lt;OL&gt;
&lt;LI&gt;It is not interpreting your path as a valid path&lt;/LI&gt;
&lt;LI&gt;It is not interpreting your template path as a valid path&lt;/LI&gt;
&lt;LI&gt;Your Outline Titles element is not specified correctly
&lt;OL&gt;
&lt;LI&gt;Outline Titles specification does not accept a literal string, the value should be None&amp;nbsp; &amp;nbsp; &amp;nbsp;note "None"&lt;/LI&gt;
&lt;LI&gt;the PNG element is a second element of the Outline Titles element.&amp;nbsp; Therefore it should be&amp;nbsp; &amp;nbsp;Outline Titles( None, PNG )&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;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.&amp;nbsp; Then start substituting in variable references.&lt;/P&gt;
&lt;P&gt;You may have to use a Substitute methodology if the Save Presentation does not convert variable values the way you want&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 22:11:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373716#M62342</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-04-01T22:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: JSL to export a graph builder to image / ppt / pdf</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373869#M62352</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;thanks for responding.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your points below:&lt;/P&gt;&lt;P&gt;1. I am sure the path is valid. I also tried opening the path from the windows command and it's a valid return.&amp;nbsp; In fact it opens at the same directory in the &lt;STRONG&gt;Save Selection As popup&lt;/STRONG&gt; as I had directed in the pptx file path, but somehow can't store on it's own .&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I'm referring to the command reference in help file at &lt;A href="https://www.jmp.com/support/help/en/15.0/#page/jmp/display-boxes.shtml#ww2164087" target="_blank"&gt;https://www.jmp.com/support/help/en/15.0/#page/jmp/display-boxes.shtml#ww2164087&lt;/A&gt; as&amp;nbsp;&lt;SPAN&gt;db&amp;lt;&amp;lt;Save Presentation(&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="argument"&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;, &amp;lt;Template(&lt;/SPAN&gt;&lt;SPAN class="argument"&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;gt;, &amp;lt;Insert("Begin"|"End"|&lt;/SPAN&gt;&lt;SPAN class="argument"&gt;n&lt;/SPAN&gt;&lt;SPAN&gt;)|Replace("Begin"|"End"|&lt;/SPAN&gt;&lt;SPAN class="argument"&gt;n&lt;/SPAN&gt;&lt;SPAN&gt;)|Append&amp;gt;, &lt;STRONG&gt;&amp;lt;Outline Titles(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="argument"&gt;title location&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;)&amp;gt;&lt;/STRONG&gt;, &amp;lt;&lt;/SPAN&gt;&lt;SPAN class="argument"&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;). Believe this indicates that the PNG is not part of the Outlines Title.&amp;nbsp; Also PNG returns an error while "PNG" is accepted. Similarly "None" or literal None are both accepted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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 ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 09:34:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373869#M62352</guid>
      <dc:creator>JmpStatistician</dc:creator>
      <dc:date>2021-04-02T09:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: JSL to export a graph builder to image / ppt / pdf</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373881#M62354</link>
      <description>&lt;P&gt;The mismatch with your findings from my last entry was that I was using the Scripting Index for my syntax, which does not give the literal string options as the Help file does.&amp;nbsp; Sorry about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of the code working.&amp;nbsp; It is without a template.&amp;nbsp;It does not popup any path window.&amp;nbsp; I don't have a template, and my past experience with using the template resulted in never getting it to work....I assume that it is my lack of PowerPoint knowledge for my failure. But the cod does work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv &amp;lt;&amp;lt; report;
raw_mean_plot = "$TEMP/jmp_example4.pptx";
rbiv &amp;lt;&amp;lt; Save Presentation(raw_mean_plot ,outline titles("none"),"PNG") 
rbiv &amp;lt;&amp;lt; Save Presentation(raw_mean_plot, append, "PNG")
Open( "$TEMP/jmp_example4.pptx" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your first example, you specify&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Path(raw_mean_plot)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I assumed you were using Path as a place holder for the actual path.&amp;nbsp; Is that the case?&amp;nbsp; The Path function in JSL is a graphical function.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 10:26:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373881#M62354</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-04-02T10:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: JSL to export a graph builder to image / ppt / pdf</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373888#M62355</link>
      <description>&lt;P&gt;Thanks for sharing your thoughts. I'm learning on the basis of the help file and hence wasn't very sure of the Scripting index, but good to know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the path, thanks for sharing this snippet. I too realized after the experiment that the result file has to be a valid pptx file existing in the location for it to work. The user cannot rely on JSL to create the pptx file in the valid location for the first time if the file didn't exist based on the template.&amp;nbsp; I was also erroneously keying in the keyword &lt;STRONG&gt;Path&lt;/STRONG&gt;() just like the &lt;STRONG&gt;Outline Titles()&amp;nbsp;&lt;/STRONG&gt;which of course isn't valid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The template file option also works as long as you have another valid template file existing in the valid directory location. Here is an example which worked for me and I believe it would for you too in case you want to give it a try:&amp;nbsp; Please ensure you have a Template file,&amp;nbsp;&lt;CODE class=" language-jsl"&gt;Template.pptx&lt;/CODE&gt; whose slide format is the way you would like it to be in your report and at least a blank &lt;CODE class=" language-jsl"&gt;mean_ppt.pptx&lt;/CODE&gt;. It just copies the same slide background/format to all the slides in the report and probably the user has to reformat each slide later on as desired.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mean_report &amp;lt;&amp;lt; Save Presentation("C:\Users\ReportFiles\mean_ppt.pptx", Template("C:\Users\TemplateFiles\Template.pptx"), Outline Titles(None), "PNG");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Apr 2021 10:53:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-export-a-graph-builder-to-image-ppt-pdf/m-p/373888#M62355</guid>
      <dc:creator>JmpStatistician</dc:creator>
      <dc:date>2021-04-02T10:53:52Z</dc:date>
    </item>
  </channel>
</rss>

