Hi Expert,
I'm trying to save my journal report in .pdf through JSL scripting.
My issue now is, I can save the report to fit nicely the landscape page manually using below settings;
But, when I converted the setting to JSL script, it stays in portrait.
Why my script not working? I've set the preferences to landscape as default but still not working
// add the header to the journal
j = Current Journal();
listOfReports = j << child;
nReports = N Items( listOfReports );
// add page breaks
For( i = N Items( listOfReports ), i >= 1, i--,
Insert Into( listOfReports, Page Break Box(), i ));
// make the PDF from the journal
j << set window title ("Daily Analysis Report "||format(today(), "d/m/y",10); );
j << set page setup( {margins( {0.75, 0.75, 0.75, 0.75} ), scale( 0.94 ), portrait(0), paper size( "Letter" )} );
// make the PDF from the journal
j << save PDF("$desktop/reportJSL.pdf");uus
using JMP17.0