cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
MahaRabeh
Level II

Label incorrect when exporting Dashboard to PDF with JSL

Hello, 

 

I am using a JSL script to save a dashboard to PDF.

In my graphs i have bars labeled by row with text format.

For some reasons when exporting to PDF the label is showing numbers and not the right labels as in the graphs.

This is only happening when i use the JSL script. If i manually export to PDF, the label is correct.

Is something wrong with my script?

This is the script i am using: 

Author = "My name";

Title = "Dashboard";

dbwin = window("Dashboard");

myjrn = New Window("DashBoard Report", <<Journal);

dbwin << Journal();

myjrn <<Set page setup(
	margins( 0.4, 0.2, 0.4, 0.1 ),
	scale( 0.35 ),
	portrait( 1 ),
	paper size( "A4" ) 
  );



myjrn << Set Print Footers(

  Author/*left*/,

  "&d;"/*center*/,

  "Page &pn; of &pc;"/*right*/

  );
  
  myjrn << Set Print headers(

 " " /*left*/,

  " "/*center*/,

  " ";/*right*/

  );


SaveLocation="C:\Users\Chart\";

path = SaveLocation || title || Char(Long Date( Today() )) || ".pdf";


myjrn <<Save PDF( path );

current journal() << close window();

Thanks.

1 REPLY 1
MahaRabeh
Level II

Re: Label incorrect when exporting Dashboard to PDF with JSL

Problem solved by freezing the journal. Used command:

dbwin <<journal(freeze pictures);