<?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: How to save journal as PPT (2 graphs per slide) using JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-save-journal-as-PPT-2-graphs-per-slide-using-JSL/m-p/282631#M54700</link>
    <description>&lt;P&gt;This works great. Thanks Jim.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 02:52:49 GMT</pubDate>
    <dc:creator>simon_2</dc:creator>
    <dc:date>2020-07-29T02:52:49Z</dc:date>
    <item>
      <title>How to save journal as PPT (2 graphs per slide) using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-journal-as-PPT-2-graphs-per-slide-using-JSL/m-p/282561#M54681</link>
      <description>&lt;P&gt;Hello users,&lt;/P&gt;&lt;P&gt;I am trying to save a journal as powerpoint. I would like to save 2 graphs per powerpoint slide instead of just one.&lt;/P&gt;&lt;P&gt;Right now I get 1 graph per slide. I want 2 graphs per slide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simon_2_0-1595967729809.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25781i28EEAD1D22087257/image-size/medium?v=v2&amp;amp;px=400" role="button" title="simon_2_0-1595967729809.png" alt="simon_2_0-1595967729809.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I go about doing that using JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My JSL script is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Fitness.jmp" );
obj = Logistic( Y( :Name ), X( :RstPulse ), By( :Age) );
obj &amp;lt;&amp;lt; journal;
Current Journal() &amp;lt;&amp;lt; Save Presentation("fitness_logistic.pptx");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:33:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-journal-as-PPT-2-graphs-per-slide-using-JSL/m-p/282561#M54681</guid>
      <dc:creator>simon_2</dc:creator>
      <dc:date>2023-06-09T23:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to save journal as PPT (2 graphs per slide) using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-journal-as-PPT-2-graphs-per-slide-using-JSL/m-p/282618#M54696</link>
      <description>&lt;P&gt;Here is a modification of your script that produces the graphs at two graphs per page.&amp;nbsp; It does this by creating a picture of the 2 graphs, and then adding that to the journal, not the original graphs.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ppt.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25785iEFF03909EBD85634/image-size/large?v=v2&amp;amp;px=999" role="button" title="ppt.PNG" alt="ppt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Fitness.jmp" );
obj = Logistic( invisible, Y( :Name ), X( :RstPulse ), By( :Age ) );
jour = New Window( "The Journal", &amp;lt;&amp;lt;journal, vlb = V List Box() );

// Loop through the outputs and put them into the journal
// as an Outline Box....to set the title
// and a picture of 2 of the logistic plots
// If the number of plots produced is an odd number, then
// don't allow the script to error out by using Try() on the second
// graphs in each loop
For( i = 1, i &amp;lt;= N Items( obj ), i = i + 2,
	ob = Outline Box( "OB", hlb1 = H List Box() );
	ob &amp;lt;&amp;lt; set title( Report( obj[i] )[Outline Box( 1 )] &amp;lt;&amp;lt; get title );
	hlb2 = H List Box();
	hlb2 &amp;lt;&amp;lt; append( Report( obj[i] )[Picture Box( 1 )] );
	ob &amp;lt;&amp;lt; set title(
		Char( Report( obj[i] )[Outline Box( 1 )] &amp;lt;&amp;lt; get title ) || " &amp;amp; " || Char( Report( obj[i + 1] )[Outline Box( 1 )] &amp;lt;&amp;lt; get title )
	);
	Try( hlb2 &amp;lt;&amp;lt; append( Report( obj[i + 1] )[Picture Box( 1 )] ) );
	hlb1 &amp;lt;&amp;lt; append( hlb2 &amp;lt;&amp;lt; get picture );
	vlb &amp;lt;&amp;lt; append( ob );
);
obj &amp;lt;&amp;lt; delete;

jour &amp;lt;&amp;lt; Save Presentation( "fitness_logistic.pptx" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jul 2020 01:18:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-journal-as-PPT-2-graphs-per-slide-using-JSL/m-p/282618#M54696</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-29T01:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to save journal as PPT (2 graphs per slide) using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-journal-as-PPT-2-graphs-per-slide-using-JSL/m-p/282631#M54700</link>
      <description>&lt;P&gt;This works great. Thanks Jim.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 02:52:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-journal-as-PPT-2-graphs-per-slide-using-JSL/m-p/282631#M54700</guid>
      <dc:creator>simon_2</dc:creator>
      <dc:date>2020-07-29T02:52:49Z</dc:date>
    </item>
  </channel>
</rss>

