Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top