Start a print job
int PpStartJob( PpPrintContext_t *pc );
ph
This function initializes the current print job. This includes opening the destination device or file and writing out the print-start command and any modified portions of the print context.
The pc argument is a pointer to the print context for the print job. This must have been created by PpCreatePC(), and may have been configured by calls to PpSetPC(), or by the PtPrintSel widget.
You normally call this function after setting up the print context with PpSetPC() and/or the PtPrintSelection() convenience function.
If the Pp_PC_DEVICE or Pp_PC_FILENAME member of the print context isn't specified, the printer in Pp_PC_NAME is used to determine the print destination. If Pp_PC_NAME isn't specified either, the default printer definition is used. If a print destination still isn't set in the print context, PpStartJob() fails and errno is set to ESRCH.
See PpContinueJob().
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PpContinueJob(), PpCreatePC(), PpEndJob(), PpGetPC(), PpPrintContext_t, PpPrintNewPage(), PpPrintWidget(), PpReleasePC(), PpSetPC(), PpSuspendJob()
Printing in the Photon Programmer's Guide