How to convert a printer driver to a stand-alone console application which can generate a printer file containing the bytes to be sent to the printer?

后端 未结 7 626
深忆病人
深忆病人 2020-12-30 05:16

I have a situation where the only way to generate a certain datafile is to print it manually to FILE: under Windows and save it in a file for further processing.

7条回答
  •  暖寄归人
    2020-12-30 06:01

    You don't embed drivers in executables- drivers are for the operating system to communicate with the hardware.

    You print via the Operating system.

    Your 'batch' needs to select the correct printer, and print...

提交回复
热议问题