win32print.StartDocPrinter
int = StartDocPrinter(hprinter, level , tuple )
Notifies the print spooler that a document is to be spooled for printing. To be used before using WritePrinter. Returns the Jobid of the started job.
Parameters
Comments
For level 1, the tuple is:
Items
- [0] string : docName
- Specifies the name of the document.
- [1] string : outputFile
- Specifies the name of an output file. To print to a printer, set this to None.
- [2] string : dataType
- Identifies the type of data used to record the document, such as "raw" or "emf", used to record the print job. This member can be None. If it is not None, the StartDoc function passes it to the printer driver. Note that the printer driver might ignore the requested data type.