如何將頁面設定 (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" ));