<?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 Label incorrect when exporting Dashboard to PDF with JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Label-incorrect-when-exporting-Dashboard-to-PDF-with-JSL/m-p/458205#M70336</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a JSL script to save a dashboard to PDF.&lt;/P&gt;&lt;P&gt;In my graphs i have bars labeled by row with text format.&lt;/P&gt;&lt;P&gt;For some reasons when exporting to PDF the label is showing numbers and not the right labels as in the graphs.&lt;/P&gt;&lt;P&gt;This is only happening when i use the JSL script. If i manually export to PDF, the label is correct.&lt;/P&gt;&lt;P&gt;Is something wrong with my script?&lt;/P&gt;&lt;P&gt;This is the script i am using:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Author = "My name";

Title = "Dashboard";

dbwin = window("Dashboard");

myjrn = New Window("DashBoard Report", &amp;lt;&amp;lt;Journal);

dbwin &amp;lt;&amp;lt; Journal();

myjrn &amp;lt;&amp;lt;Set page setup(
	margins( 0.4, 0.2, 0.4, 0.1 ),
	scale( 0.35 ),
	portrait( 1 ),
	paper size( "A4" ) 
  );



myjrn &amp;lt;&amp;lt; Set Print Footers(

  Author/*left*/,

  "&amp;amp;d;"/*center*/,

  "Page &amp;amp;pn; of &amp;amp;pc;"/*right*/

  );
  
  myjrn &amp;lt;&amp;lt; Set Print headers(

 " " /*left*/,

  " "/*center*/,

  " ";/*right*/

  );


SaveLocation="C:\Users\Chart\";

path = SaveLocation || title || Char(Long Date( Today() )) || ".pdf";


myjrn &amp;lt;&amp;lt;Save PDF( path );

current journal() &amp;lt;&amp;lt; close window();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:10:06 GMT</pubDate>
    <dc:creator>MahaRabeh</dc:creator>
    <dc:date>2023-06-09T18:10:06Z</dc:date>
    <item>
      <title>Label incorrect when exporting Dashboard to PDF with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Label-incorrect-when-exporting-Dashboard-to-PDF-with-JSL/m-p/458205#M70336</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a JSL script to save a dashboard to PDF.&lt;/P&gt;&lt;P&gt;In my graphs i have bars labeled by row with text format.&lt;/P&gt;&lt;P&gt;For some reasons when exporting to PDF the label is showing numbers and not the right labels as in the graphs.&lt;/P&gt;&lt;P&gt;This is only happening when i use the JSL script. If i manually export to PDF, the label is correct.&lt;/P&gt;&lt;P&gt;Is something wrong with my script?&lt;/P&gt;&lt;P&gt;This is the script i am using:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Author = "My name";

Title = "Dashboard";

dbwin = window("Dashboard");

myjrn = New Window("DashBoard Report", &amp;lt;&amp;lt;Journal);

dbwin &amp;lt;&amp;lt; Journal();

myjrn &amp;lt;&amp;lt;Set page setup(
	margins( 0.4, 0.2, 0.4, 0.1 ),
	scale( 0.35 ),
	portrait( 1 ),
	paper size( "A4" ) 
  );



myjrn &amp;lt;&amp;lt; Set Print Footers(

  Author/*left*/,

  "&amp;amp;d;"/*center*/,

  "Page &amp;amp;pn; of &amp;amp;pc;"/*right*/

  );
  
  myjrn &amp;lt;&amp;lt; Set Print headers(

 " " /*left*/,

  " "/*center*/,

  " ";/*right*/

  );


SaveLocation="C:\Users\Chart\";

path = SaveLocation || title || Char(Long Date( Today() )) || ".pdf";


myjrn &amp;lt;&amp;lt;Save PDF( path );

current journal() &amp;lt;&amp;lt; close window();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:10:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Label-incorrect-when-exporting-Dashboard-to-PDF-with-JSL/m-p/458205#M70336</guid>
      <dc:creator>MahaRabeh</dc:creator>
      <dc:date>2023-06-09T18:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Label incorrect when exporting Dashboard to PDF with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Label-incorrect-when-exporting-Dashboard-to-PDF-with-JSL/m-p/459520#M70468</link>
      <description>&lt;P&gt;Problem solved by freezing the journal. Used command:&lt;/P&gt;&lt;P&gt;dbwin &amp;lt;&amp;lt;journal(freeze pictures);&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 14:23:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Label-incorrect-when-exporting-Dashboard-to-PDF-with-JSL/m-p/459520#M70468</guid>
      <dc:creator>MahaRabeh</dc:creator>
      <dc:date>2022-02-09T14:23:22Z</dc:date>
    </item>
  </channel>
</rss>

