简体   繁体   中英

How to create a postscript file using print to file option in word with C#?

我想使用Microsoft Word和C#中的打印到文件从Word文档(.doc)创建一个Postscript文件,我发现了很多打印文件的方法,但是找不到“打印到文件”。

Unless things have changed, you don't 'print to file' you 'print to a printer on FILE:'

So what you need to do is create a printer instance using the driver of your choice, and have it send its data to the FILE: hardware (rather than LPT!: COM!: USB001: etc).

On Windows versions up to 7 (I have no information yet on Windows 8) it is possible to create a Port Monitor and install that, this can then write the data to file instead. You still have to create a printer instance which uses that Port Monitor though.

Add a new printer.

Select - Local printer attached to this printer

Use port - FILE: (print to file)

Choose a postscript printer from the list, such as an Apple LaserWriter 16/600 PS (or an 11x17 printer for larger output or an imagesetter for variable page size ability)

Then just print to the printer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM