【小技】印刷をプリンターではなくファイルに出力する
【小技】印刷をプリンターではなくファイルに出力する
Macではおなじみの方法ですが,現在はWindowsでも下記のコードでファイルに出力することができます。
SET CURRENT PRINTER
- 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- 投稿数 : 468
登録日 : 2016/07/05
Permissions in this forum:
返信投稿: 不可
|
|