如何将页面设置 (PDF) 转换为 JSL 脚本?专家您好,
我正在尝试通过 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
自动化和脚本编写分享和交流结果视窗回复:如何将页面设置设置 (PDF) 转换为 JSL 脚本?知道了。
不知何故,我需要在设置页面设置之后和保存 .pdf 之前添加 Wait (0) 才能使其正常工作。
// 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" )} );
Wait(0);
// make the PDF from the journal
j << save PDF("$desktop/reportJSL.pdf");
回复:如何将页面设置(PDF)转换为 JSL 脚本?在 JMP 18 中,这不起作用。我不得不去掉花括号才能让它正常工作:
j << set page setup(Margins( {0.7, 0.2, 0.2, 0.2} ), Scale( 1 ), Portrait( 1 ),Paper Size( "A4" ));