4D-JUG
Would you like to react to this message? Create an account in a few clicks or log in to continue.

【小技】印刷をプリンターではなくファイルに出力する

Go down

【小技】印刷をプリンターではなくファイルに出力する Empty 【小技】印刷をプリンターではなくファイルに出力する

投稿 by miyako 2016-11-25, 10:04 am

Macではおなじみの方法ですが,現在はWindowsでも下記のコードでファイルに出力することができます。

  • XPSの場合

Code:
SET CURRENT PRINTER("Microsoft XPS Document Writer")
SET PRINT OPTION(Destination option;2;System folder(Desktop)+"test.xps")  //2=File

  • PDFの場合

Code:
SET CURRENT PRINTER(Generic PDF driver)
SET PRINT OPTION(Destination option;2;System folder(Desktop)+"test.pdf")  //2=File

SET CURRENT PRINTER

miyako

投稿数 : 483
登録日 : 2016/07/05

トップに戻る Go down

トップに戻る


 
Permissions in this forum:
返信投稿: 不可