Syntax:
INT LlStgsysGetPageOptionValue (HLLSTG hStg, INT nPageIndex, INT nOption);
Task:
Returns page-dependent information.
Parameter:
hStg: The handle returned by LlStgsysStorageOpen()
nPageIndex: Page index (1..LlStgsysGetPageCount())
nOption: Chooses the meaning of the return value
LS_OPTION_PAGENUMBER
Returns the page number of the selected page.
LS_OPTION_COPIES
Returns the number of copies that the page should be printed with.
LS_OPTION_PRN_ORIENTATION
Returns the page orientation (DMORIENT_PORTRAIT or DMORIENT_LANDSCAPE)
LS_OPTION_PHYSPAGE
Returns whether the project should be printed using the physical paper size (1) or only the printable area (0).
LS_OPTION_PRN_PIXELSOFFSET_X
Returns the horizontal offset of the printable area in relation to the paper edge (of the original printer).
LS_OPTION_PRN_PIXELSOFFSET_Y
Returns the vertical offset of the printable area in relation to the paper edge (of the original printer).
LS_OPTION_PRN_PIXELS_X
Returns the horizontal size of the printable area (of the original printer).
LS_OPTION_PRN_PIXELS_Y
Returns the vertical size of the printable area (of the original printer).
LS_OPTION_PRN_PIXELSPHYSICAL_X
Returns the horizontal size of the paper (of the original printer).
LS_OPTION_PRN_PIXELSPHYSICAL_Y
Returns the vertical size of the paper (of the original printer).
LS_OPTION_PRN_PIXELSPERINCH_X
Returns the horizontal printer resolution (DPI).
LS_OPTION_PRN_PIXELSPERINCH_Y
Returns the vertical printer resolution (DPI).
LS_OPTION_PRN_INDEX
Returns the index of the printer used for the current page (0 means first page-printer, 1 for the printer for the other pages).
LS_OPTION_ISSUEINDEX
Returns the issue index (1…) of the page.
Return value:
>=0: Value
<0: Error code
Hints:
"Printer" or "original printer" means the printer selected when the preview file was created.
These values are invaluable if you wish to create your own preview and print management, especially if the destination printers are different from the original.
To get the correct value, set the job with LlStgsysSetJob() before calling this API function.
See also:
LlStgsysGetPageOptionString