LlStgsysGetPageOptionString

Syntax:

INT LlStgsysGetPageOptionString (HLLSTG hStg, INT nPageIndex, INT nOption, LPTSTR pszBuffer, UINT nBufSize);

Task:

Returns character strings that are stored in the preview file.

Parameter:

hStg: The handle returned by LlStgsysStorageOpen()

nPageIndex: Page index (1..LlStgsysGetPageCount())

nOption: Chooses the meaning of the return value

pszBuffer: Address of the buffer for the string

nBufSize: Length of the buffer (including the terminating 0-character)

Return value:

Error code

Hints:

You can use the following values for nOption:

LS_OPTION_PROJECTNAME

Returns the name of the project file that has been used to create this page

LS_OPTION_JOBNAME

Returns the name of the job (see LlPrintWithBoxStart())

LS_OPTION_USER

Returns the user-specific string (see LlStgsysSetPageOptionString())

LS_OPTION_CREATION

Creation date/time

LS_OPTION_CREATIONAPP

Application that created this file

LS_OPTION_CREATIONDLL

DLL that created this file

LS_OPTION_CREATIONUSER

User and computer name of the person that created this file

LS_OPTION_PRINTERALIASLIST

See also LL_OPTIONSTR_PRINTERALIASLIST: this represents the printer alias list valid at the time of the creation of the preview file. This is one string, lines separated by a line break "\n".

LS_OPTION_USED_PRTDEVICE

Returns the device of the original printer (for example "HP LaserJet 4L")

See also:

LlStgsysGetPageOptionValue, LlStgsysSetPageOptionString