专家您好,
我正在尝试通过 JSL 脚本将我的日记报告保存为 .pdf 格式。
我现在的问题是,我可以使用以下设置手动保存报告以很好地适应横向页面;

但是,当我将设置转换为 JSL 脚本时,它仍保持纵向。
为什么我的脚本不起作用? 我已将首选项设置为默认横向,但仍然无法正常工作
// 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使用JMP17.0