문제

I have files I need to drive thru a print driver and save then as files. Can I programactly use the DevMode Structure to drive these files without openning the application it was created in? Also can I change the DevMode Structure values to change to other file types programmatically and continue to drive them and save them to files?

도움이 되었습니까?

해결책

When you say "you have files you want to drive thru a print driver" - I assume you mean these files are input (document) files like a Word document, a Text file, a .jpg file etc, correct? If so, then I guess your idea wont hold good. DEVMODE is a driver structure used by the print driver to communicate to the application. It has the settings which are needed for printing the job. However, the application creates the print job by actually converting its content into the GDI format which is then passed to the print driver which converts it into the printer format. So for eg: A Word doc is read by the Word application, its content converted to GDI API calls and sent to GDI which then sends it to the driver which converts it into the printer language (say PCL or PS).

If you can give more details on why you want to do this, I can help you out

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top