Syntax:
INT LlStgsysStoragePrint (LPCTSTR lpszFilename, LPCTSTR pszTempPath, LPCTSTR pszPrinterName1, LPCTSTR pszPrinterName2, INT nStartPageIndex, INT nEndPageIndex, INT nCopies, UINT nFlags, LPCTSTR pszMessage, HWND hWndParent);
Task:
Prints pages from an open preview file job
Parameter:
lpszFilename: The name of the project or preview (List & Label does not take account of the extension, as it will always be set to .LL)
pszTempPath: A temporary path (can be NULL or empty)
pszPrinterName1: Name of the printer to be used for the first page (can be NULL, see below)
pszPrinterName2: Name of the printer to be used for the following pages (can be NULL, see below)
nStartPageIndex: Index of the first page to be printed
nEndPageIndex: Index of the last page to be printed
nCopies: Number of copies
nFlags: A combination of the following flags:
Flag |
Meaning |
LS_PRINTFLAG_FIT |
Fits the print to the printable area of the printer |
LS_PRINTFLAG_STACKEDCOPIES |
Prints copies for each page, not the job (111222333 instead of 123123123) |
LS_PRINTFLAG_TRYPRINTERCOPIES |
Tries to make copies by printer feature, if possible |
LS_PRINTFLAG_METER |
Shows a meter dialog |
LS_PRINTFLAG_ABORTABLEMETER |
Shows a meter dialog which has a "Cancel" button |
LS_PRINTFLAG_SHOWDIALOG |
Shows a printer select dialog |
LS_PRINTFLAG_FAX |
Required for output on fax printer |
pszMessage: Will be shown in the title of
the optional meter dialog and is also used as document name for the print job.
If NULL, the entry from the preview file (parameter of LlPrintStart()) is used.
hWndParent: Window handle to be used as parent for the meter dialog
Return value:
Error code
Hints:
Use this API routine if you want an easy way to print a page range from a preview file. If a printer name is NULL, List & Label tries to get the printer and its settings from the values stored in the preview file (i.e. the printer settings selected during creation). If no printer with the given device name is present, the default printer is selected.
See also:
LlStgsysPrint