專家您好,
我正在嘗試透過 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