GetSaveAsOptionDefStringAtPos

 

#include “BlackIceDEVMODE.h”

 

BOOL            GetSaveAsOptionDefStringAtPos (BlackIceDEVMODE* pDevMode , SAVEAS_STRINGPROPS iSaveAsProp, LPTSTR pszValue, DWORD* pdwSizeInBytes, int iPosition);

Description

This function retrieves the default values of the Save As Option dialog. This function can get the default string values in an array. Use the GetSaveAsOptionDefaultValue function to get the default values of numeric types. The default value means that the Save As dialog uses this value when it will be displayed

 

Parameters

BlackIceDEVMODE* pDevMode                        - pointer to the BlackIceDEVMODE structure.

SAVEAS_STRINGPROPS iSaveAsProp                      - the string property.

Available values:

SAVEAS_PDF_FORCEFONT (8)

SAVEAS_PDF_FORBIDFONT (9)

SAVEAS_HTML_FORCEFONT (11)

SAVEAS_HTML_FORBIDFONT (12)

SAVEAS_REDIRECT_PRINTER (13)

 

 

LPTSTR pszValue             - This will contain the value of the selected property.

Available values:

SAVEAS_PDF_FORCEFONT: element of the force to embed font on the Font tab of the PDF option dialog.

SAVEAS_PDF_FORBIDFONT:element of the forbid to embed font on the Font tab of the PDF option dialog.

SAVEAS_HTML_FORCEFONT:element of the force to embed font on the Font tab of the HTML option dialog.

SAVEAS_HTML_FORBIDFONT:element of the forbid to embed font on the Font tab of the HTML option dialog.

SAVEAS_REDIRECT_PRINTER: Redirect printer name at the specified position.

 

 

DWORD* pdwSizeInBytes                       - Number of maximum bytes can be stored in the pszValue. If this value is zero when the function returns pdwSizeInBytes will contain the required space for pszValue.

int iPosition                                                 - zero based integer value. This value specifies the iPosition-th element in the array.

Return value

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None