Syntax:
INT LlPrintSetOptionString (HLLJOB hJob, INT nIndex, LPCTSTR pszValue);
Task:
Sets various print options for List & Label.
Parameter:
hJob: List & Label job handle
nIndex: See below
pszValue: The new value
Return Value:
Error code
Hints:
LL_PRNOPTSTR_EXPORT
Sets the default export destination (for example "RTF", "HTML", "PDF", etc.) to be used (or shown in the print dialog)
LL_PRNOPTSTR_ ISSUERANGES
A string containing default settings for the issue range, for example "1,3-4,10-".
LL_PRNOPTSTR_ PAGERANGES
A string containing default settings for the range(s) like shown in the printer options dialog, for example "1,3-4,10-". Further variations are possible, e.g. "1,3,…" for uneven pages or "2,4,…" for every second page. When using "…" the pattern will be automatically continued accordingly.
LL_PRNOPTSTR_PRINTDST_FILENAME
The default file name that the print should be saved to if "print to file" has been chosen.
LL_PRNOPTSTR_PRINTJOBNAME
You can set the job name to be used for the print spooler with this option.
You need to set it before the print job starts (that is, before the first call to LlPrint()).
Example:
HLLJOB hJob;
hJob = LlJobOpen(0);
//
LlPrintStart(...);
LlPrintSetOptionString(hJob,
LL_PRNOPTSTR_PRINTDST_FILENAME, "c:\temp\ll.prn");
// ....
//
LlPrintEnd();
LlJobClose(hJob);
See also:
LlPrintGetOptionString