This function indicates the start of a print job. It allows the application to specify a document name to be associated with the print job.
Multiple print jobs can be generated, within a single queue manager open, by bracketing each job with SplQmStartDoc and SplQmEndDoc.
#define INCL_SPL #include <OS2.H> HSPL hspl; /* spooler handle. */ CHAR szDocName[] = "Test Job"; CHAR szMsg[100]; HWND hwndClient; sprintf(szMsg, "Starting job named: %s",szDocName); WinMessageBox(HWND_DESKTOP, hwndClient, /* client-window handle */ szMsg, /* body of the message */ "Printing Information", /* title of the message */ 0, /* message box id */ MB_NOICON | MB_OK); /* icon and button flags */ SplQmStartDoc(hspl,szDocName);