Does anyone know how I can print multiple files in one print job. I looked at calling the SetJob api but I do not know how to use it to print multiple files. Can anyone help?
use openprinter to open the printer
use startdoc to start a new document
use startpage to start a new page
now spool a file
use endpage to separate pages
use startpage to start a new page
now spool a file
use endpage to separate pages
use startpage to start a new page
now spool a file
use endpage to separate pages
now use enddoc to end the document
use closeprinter to close the printer
When I first started my project I did what you mentioned. However, this does not work for all file types. When I print a Visio or Word file it send binary data to the printer and prints trash. I can print the file in the correct format using the ShellExecute API call. However, this prints files in separate jobs. I am playing with the SetJob API but I do not know how to use it. Does anyone have any ideas?
When I first started my project I did what you mentioned. However, this does not work for all file types. When I print a Visio or Word file it send binary data to the printer and prints trash. I can print the file in the correct format using the ShellExecute API call. However, this prints files in separate jobs. I am playing with the SetJob API but I do not know how to use it. Does anyone have any ideas?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.