運行 Save Interactive HTML 時自動設置文件名大家好,
我想根據“另存為對話框”上的變量自動設置文件名的一部分。 可以像這樣工作的東西(使用 JMP 示例):
Names Default To Here( 1 );
//This message applies to all display box objects
filename_part1="This is the long part of the filename"<BR />Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
rbiv << Save Interactive HTML(); <---set filename_part1
當另存為對話框打開時,設置文件名的第一部分已經通過代碼. 然後用戶手動填寫全名。

感謝您的幫助!!
Re: 運行 Save Interactive HTML 時自動設置文件名非常感謝 !!! 不錯的解決方法!Re: 運行 Save Interactive HTML 時自動設置文件名我思考這就是你要找的:
Names Default To Here( 1 );
filename_part1="This is the long part of the filename";
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
//Wait so the report shows up behind the window to choose a file
wait(0);
//Choose a file with the save flag set and the default filename set
filename_all = Pick File(
"Select JMP File",
"$DOCUMENTS",
{"HTML Files|htm;html", "All Files|*"},
1,
1,
filename_part1 || ".html"
);
//Save the file
rbiv << Save Interactive HTML( filename_all );