<?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 a Dashboard as an Image in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Save-a-Dashboard-as-an-Image/m-p/40365#M23644</link>
    <description>&lt;P&gt;I have a two questions regarding JSL and Dashboards. The dashboard script I&amp;nbsp;am currently writing has&amp;nbsp;multiple graphs and runs without issue. However, my problem lies in trying to save the file. I would like to be able to save the file as a TIFF.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore questions:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) How do you save a Dashboard as an image?&lt;/P&gt;&lt;P&gt;2) To save the Dashboard as an image with the correct proportions, the window needs to be maximized. Is there a way to script window maximization?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 18:33:31 GMT</pubDate>
    <dc:creator>awallace</dc:creator>
    <dc:date>2017-06-13T18:33:31Z</dc:date>
    <item>
      <title>JSL:  Save a Dashboard as an Image</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-a-Dashboard-as-an-Image/m-p/40365#M23644</link>
      <description>&lt;P&gt;I have a two questions regarding JSL and Dashboards. The dashboard script I&amp;nbsp;am currently writing has&amp;nbsp;multiple graphs and runs without issue. However, my problem lies in trying to save the file. I would like to be able to save the file as a TIFF.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore questions:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) How do you save a Dashboard as an image?&lt;/P&gt;&lt;P&gt;2) To save the Dashboard as an image with the correct proportions, the window needs to be maximized. Is there a way to script window maximization?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:33:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-a-Dashboard-as-an-Image/m-p/40365#M23644</guid>
      <dc:creator>awallace</dc:creator>
      <dc:date>2017-06-13T18:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: JSL:  Save a Dashboard as an Image</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-a-Dashboard-as-an-Image/m-p/40371#M23647</link>
      <description>&lt;P&gt;Both of these would require additional scripting. &amp;nbsp;One way to do this would be to script within the Application itself (Dashboards do not support scripting, but you can toggle off 'Dashboard Mode' from the red-triangle menu).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once in Application Builder, on the 'Scripts' tab you can add what you need. &amp;nbsp;In most cases, commands to the window can be sent to any display box in the window. &amp;nbsp;The Dashboard templates use the JSL name 'MainTabPage' for the top-level box, and you can use the commands &amp;lt;&amp;lt;Maximize Window() and &amp;lt;&amp;lt;Save Picture() to do what you need. &amp;nbsp;In the builder this looks like:&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="DashboardSave.png" style="width: 819px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6448i2A9FFFA2E653958A/image-size/large?v=v2&amp;amp;px=999" role="button" title="DashboardSave.png" alt="DashboardSave.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:45:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-a-Dashboard-as-an-Image/m-p/40371#M23647</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2017-06-13T20:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSL:  Save a Dashboard as an Image</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-a-Dashboard-as-an-Image/m-p/40372#M23648</link>
      <description>That works perfectly! I am new to JSL and did not realize that Dashboards don't support scripting. Thank you so much for your help!</description>
      <pubDate>Tue, 13 Jun 2017 20:58:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-a-Dashboard-as-an-Image/m-p/40372#M23648</guid>
      <dc:creator>awallace</dc:creator>
      <dc:date>2017-06-13T20:58:15Z</dc:date>
    </item>
  </channel>
</rss>

