<?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 JSL: save the dashboard output as pdf in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-save-the-dashboard-output-as-pdf/m-p/67861#M34712</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my&amp;nbsp;script&amp;nbsp; does some analysis and puts the output into a dashboard. As the next step, I want the&amp;nbsp;script to save the dashboard in a different format, say PDF. I failed all my tries. I am using JMP 14 (not JMP Pro). I checked the post where smth similar was done with the help of Application Buildier in JMP Pro, but that seems not to be very useful in my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate very much if you share your thoughts.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 08:31:08 GMT</pubDate>
    <dc:creator>Aziza</dc:creator>
    <dc:date>2018-08-14T08:31:08Z</dc:date>
    <item>
      <title>JSL: save the dashboard output as pdf</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-save-the-dashboard-output-as-pdf/m-p/67861#M34712</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my&amp;nbsp;script&amp;nbsp; does some analysis and puts the output into a dashboard. As the next step, I want the&amp;nbsp;script to save the dashboard in a different format, say PDF. I failed all my tries. I am using JMP 14 (not JMP Pro). I checked the post where smth similar was done with the help of Application Buildier in JMP Pro, but that seems not to be very useful in my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate very much if you share your thoughts.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 08:31:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-save-the-dashboard-output-as-pdf/m-p/67861#M34712</guid>
      <dc:creator>Aziza</dc:creator>
      <dc:date>2018-08-14T08:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: save the dashboard output as pdf</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-save-the-dashboard-output-as-pdf/m-p/67906#M34718</link>
      <description>&lt;P&gt;Here is an example that uses a sample application builder.&amp;nbsp; I have JMP Pro, so I am not sure it will work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if you know the name or can get a handle to the dashboard window you just created (see comment lines ) the rest of the script might work.&amp;nbsp; Note you might have to scale your page to get the display you want.&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);

dbapp = JMP App();
dbapp &amp;lt;&amp;lt; open file("$Sample_Dashboards/Six Quality Graphs Dashboard.jmpappsource");
dbapp &amp;lt;&amp;lt; Edit Application;
dbapp &amp;lt;&amp;lt; Run Application;
wait(0);

//__________________________________________________________
//get a handle to your dashboard using window list 
//or dbwin = window("your title")

_xx = get window list( );

//should be the last window created
If( !Contains( _xx[nitems(_xx)] &amp;lt;&amp;lt; get window title, "Dashboard"), Throw()); 

dbwin = _xx[nitems(_xx)];

myjrn = New Window("DashBoard Report", &amp;lt;&amp;lt;Journal);

dbwin &amp;lt;&amp;lt; Journal( Freeze All);

myjrn &amp;lt;&amp;lt;Set page setup(
	margins( .5, .5, .5, .5 ),
	scale( .66 ),
	portrait( 0 ),
	paper size( "Letter" ) 
  );

myjrn &amp;lt;&amp;lt;Save PDF("c:\temp\mypdf.pdf");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen capture of PDF file" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12012iCC288B40B414E5F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Screen capture of PDF file" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screen capture of PDF file&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 13:16:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-save-the-dashboard-output-as-pdf/m-p/67906#M34718</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-14T13:16:21Z</dc:date>
    </item>
  </channel>
</rss>

