SetSaveAsOptionDefaultValue

 

#include “BlackIceDEVMODE.h”

 

BOOL            SetSaveAsOptionDefaultValue (BlackIceDEVMODE* pDevMode , SAVEAS_NUMPROPS iSaveAsProp, DWORD dwValue);

Description

This function specifies the default values of the Save As Option dialog. This function can set the default numeric values. Use the SetSaveAsOptionDefaultString function to set the default values of string types. The default value means that the Save As dialog uses this value when it will be displayed. For example if the SAVEAS_OPENDEFVIEWER is set to 1 the ‘Open printed document using the default viewer’ checkbox will be checked.

Parameters

BlackIceDEVMODE* pDevMode               - pointer to the BlackIceDEVMODE structure.

SAVEAS_NUMPROPS iSaveAsProp      - the numeric property.

Available values:

SAVEAS_FILEFORMAT (0)

      SAVEAS_OPENDEFVIEWER (1)

      SAVEAS_OPENOUTPUTFOLDER (2)

      SAVEAS_EACHPAGESEPARATE (3)

      SAVEAS_APPENDFILE (4)

      SAVEAS_WARNINGAPPENDMSG (6)

      SAVEAS_WARNINGOVERWRITEMSG (7)

SAVEAS_JPEG_LOSSRATIO (9)

      SAVEAS_TIFF_INTERNETFORMAT (10)

      SAVEAS_TIFF_REVERSEBITORDER (11)

      SAVEAS_TIFF_ADDPAGENUM_TAG (12)

      SAVEAS_IMGPDF_COMPRESSION (13)

      SAVEAS_PDF_ENCRYPTION (14)

      SAVEAS_PDF_SECURITYFLAGS (15)

      SAVEAS_PDF_STREAMCOMPRESSION (16)

      SAVEAS_PDF_COLORIMGCOMPRESSION (17)

      SAVEAS_PDF_MONOIMGCOMPRESSION (18)

      SAVEAS_PDF_JPEGQUALITY (19)

      SAVEAS_PDF_EMBEDFONTS (20)

      SAVEAS_PDF_EMBEDLICENSEDFONTS (21)

      SAVEAS_PDF_EMBEDADOBEFONTS (22)

      SAVEAS_PDF_EMBEDWINDOWSFONTS (23)

      SAVEAS_PDF_CREATEFONTSUBSET(24)

      SAVEAS_PDF_FORCEFONTSCOUNT (25)

      SAVEAS_PDF_FORBIDFONTSCOUNT (26)

      SAVEAS_HTML_VIEWTYPE (27)

      SAVEAS_HTML_CSSSETTINGS (28)

      SAVEAS_HTML_SEPARATEPAGES (29)

      SAVEAS_HTML_DISPLAYMODE (30)

      SAVEAS_HTML_EMBEDFONTS (31)

      SAVEAS_HTML_EMBEDLICENSEDFONTS (32)

      SAVEAS_HTML_CREATEFONTSUBSET (33)

      SAVEAS_HTML_FORCEFONTSCOUNT (34)

      SAVEAS_HTML_FORBIDFONTSCOUNT (35)

SAVEAS_REDIRECTPRINTING (36)

      SAVEAS_SENDINEMAIL (37)

      SAVEAS_UPLOADTOSHAREPOINT (38)

      SAVEAS_PRINTWATERMARK (39)

      SAVEAS_REDIRECT_PRINTING_COUNT (40)

      SAVEAS_WATERMARK_FIRSTPAGEONLY (41)

      SAVEAS_WATERMARK_P_STRETCHTOWIDTH (42)

      SAVEAS_WATERMARK_P_STRETCHTOFIT (43)

      SAVEAS_WATERMARK_P_TILE (44)

      SAVEAS_WATERMARK_L_STRETCHTOWIDTH (45)

      SAVEAS_WATERMARK_L_STRETCHTOFIT (46)

      SAVEAS_WATERMARK_L_TILE (47)

      SAVEAS_WATERMARK_P_FIRST_IMAGE_POSITION (48)

      SAVEAS_WATERMARK_L_FIRST_IMAGE_POSITION (49)

      SAVEAS_WATERMARK_UNIQUE_FIRST_ENABLED (50)

      SAVEAS_WATERMARK_P_BRIGHTNESS (51)

      SAVEAS_WATERMARK_L_BRIGHTNESS (52)

      SAVEAS_WATERMARK_P_FIRST_BRIGHTNESS (53)

      SAVEAS_WATERMARK_L_FIRST_BRIGHTNESS (54)

      SAVEAS_WATERMARK_P_CENTER (55)

      SAVEAS_WATERMARK_L_CENTER (56)

 

 

DWORD dwValue                           - New value of the selected property.

Available values:

SAVEAS_FILEFORMAT: 0-37 index of the file format. Please see the devmode.h.

SAVEAS_OPENDEFVIEWER:

0 - ‘Open printed document using the default viewer’ checkbox will be unchecked.

            1 - ‘Open printed document using the default viewer’ checkbox will be checked.

SAVEAS_OPENOUTPUTFOLDER: :

0 - ‘Open output folder’ checkbox will be unchecked.

            1 - ‘Open output folder’ checkbox will be checked.

SAVEAS_EACHPAGESEPARATE:

0 - ‘Save each page as separate file’ checkbox will be unchecked.

            1 - ‘Save each page as separate file’ checkbox will be checked.

SAVEAS_APPENDFILE:

0 - ‘Append to existing document’ checkbox will be unchecked.

            1 - ‘Append to existing document’ checkbox will be checked.

SAVEAS_WARNINGAPPENDMSG:

0 - Warning dialog won’t be appeared in case of append when the output file is already exist.

            1 - Warning dialog will be appeared in case of append when the output file is already exist.

SAVEAS_WARNINGOVERWRITEMSG:

0 - Warning dialog won’t be appeared in case of overwrite when the output file is already exist.

            1 - Warning dialog will be appeared in case of overwrite when the output file is already exist.

SAVEAS_JPEG_LOSSRATIO:

Loss Ration value in the JPEG option dialog. Available values 1-100.

SAVEAS_TIFF_INTERNETFORMAT:

0 - ‘Internet TIFF Format’ checkbox is unchecked in the TIFF options dialog

1 - ‘Internet TIFF Format’ checkbox is checked in the TIFF options dialog

SAVEAS_TIFF_REVERSEBITORDER:

0 - ‘Reverse bit order in TIFF’ checkbox is unchecked in the TIFF options dialog

1 - ‘Reverse bit order in TIFF’’ checkbox is checked in the TIFF options dialog

SAVEAS_TIFF_ADDPAGENUM_TAG:

0 - ‘Add Page Numbering Tag’ checkbox is unchecked in the TIFF options dialog

1 - ‘Add Page Numbering Tag’ checkbox is checked in the TIFF options dialog

SAVEAS_IMGPDF_COMPRESSION:

Compression value in the image PDF option dialog. Available values: BLF_PDF_FILTER_NO_COMPRESSION, BLF_PDF_FILTER_DCT_JPEG_DECODE, BLF_PDF_FILTER_FLATE_DECODE.

SAVEAS_PDF_ENCRYPTION:

Encryption value at the Security tab of the PDF option dialog. Available values: PDF_ENCRYPTION_NONE, PDF_ENCRYPTION_40BIT.

SAVEAS_PDF_SECURITYFLAGS:

Security settings flagsat the Security tab of the PDF option dialog. Available flags (more flags can be specified): PDF_SECURITY_FLAG_NO, PDF_SECURITY_FLAG_PRINT, PDF_SECURITY_FLAG_COPY, PDF_SECURITY_FLAG_COMMENT, PDF_SECURITY_FLAG_EDIT.

SAVEAS_PDF_STREAMCOMPRESSION:

Stream compression at the compression tab of the PDF option dialog. Available values: BLF_PDF_STREAM_COMPRESSION_NONE, BLF_PDF_STREAM_COMPRESSION_FLATEENCODE.

SAVEAS_PDF_COLORIMGCOMPRESSION:

Color compression at the compression tab of the PDF option dialog. Available values: BLF_PDF_COLOR_IMAGE_COMP_NONE, BLF_PDF_COLOR_IMAGE_COMP_FLATE, BLF_PDF_COLOR_IMAGE_COMP_RUNLENGTH, BLF_PDF_COLOR_IMAGE_COMP_JPEG.

SAVEAS_PDF_MONOIMGCOMPRESSION:

Color compression at the compression tab of the PDF option dialog. Available values: BLF_PDF_MONO_IMAGE_COMP_NONE, BLF_PDF_MONO_IMAGE_COMP_FLATE, BLF_PDF_MONO_IMAGE_COMP_RUNLENGTH, BLF_PDF_MONO_IMAGE_COMP_FAX.

SAVEAS_PDF_JPEGQUALITY:

Jpeg quality at the compression tab of the PDF option dialog. Available values: 1-100.

SAVEAS_PDF_EMBEDFONTS:

0 - ‘Embed fonts’ checkbox is unchecked at the Fonts tab of the PDF option dialog.

1 - ‘Embed fonts’ checkbox is checked at the Fonts tab of the PDF option dialog.

SAVEAS_PDF_EMBEDLICENSEDFONTS:

0 - ‘Embed licensed fonts’ checkbox is unchecked at the Fonts tab of the PDF option dialog.

1 - ‘Embed licensed fonts’ checkbox is checked at the Fonts tab of the PDF option dialog.

SAVEAS_PDF_EMBEDADOBEFONTS:

0 - ‘Embed Adobe standard fonts’ checkbox is unchecked at the Fonts tab of the PDF option dialog.

1 - ‘Embed Adobe standard fonts’ checkbox is checked at the Fonts tab of the PDF option dialog.

SAVEAS_PDF_EMBEDWINDOWSFONTS:

0 - ‘Embed Windows standard fonts’ checkbox is unchecked at the Fonts tab of the PDF option dialog.

1 - ‘Embed Windows standard fonts’ checkbox is checked at the Fonts tab of the PDF option dialog.

SAVEAS_PDF_CREATEFONTSUBSET:

0 - ‘Create font subset’ checkbox is unchecked at the Fonts tab of the PDF option dialog.

1 - ‘Create font subset’ checkbox is checked at the Fonts tab of the PDF option dialog.

SAVEAS_PDF_FORCEFONTSCOUNT:

      Number of force to embed fonts at the Fonts tab of the PDF option dialog.

SAVEAS_PDF_FORBIDFONTSCOUNT:

      Number of forbidden to embed fonts at the Fonts tab of the PDF option dialog.

SAVEAS_HTML_VIEWTYPE:

Value of the View setting at General tab of the HTML option dialog. Avaialble values: BLF_HTML_ASPECTRATIO_PAGEWIDTH, BLF_HTML_ASPECTRATIO_PAGEHEIGHT, BLF_HTML_ASPECTRATIO_FIT.

SAVEAS_HTML_CSSSETTINGS:

Value of the CSS options at General tab of the HTML option dialog. Avaialble values: BLF_HTML_CSS_NONE, BLF_HTML_CSS_SEPARATE, BLF_HTML_CSS_INLINE_SEPARATE.

SAVEAS_HTML_SEPARATEPAGES:

0 - ‘Save pages to separate files’ checkbox is unchecked at General tab of the HTML option dialog.

1 - ‘Save pages to separate files’ checkbox is checked at General tab of the HTML option dialog.

SAVEAS_HTML_DISPLAYMODE:

Value of the ‘Vector graphics display mode’at General tab of the HTML option dialog. Available values: BLF_HTML_VECTORGRAPHICS_HIDE, BLF_HTML_VECTORGRAPHICS_PNG.

SAVEAS_HTML_EMBEDFONTS:

0 - ‘Embed fonts’ checkbox is unchecked at the Fonts tab of the HTML option dialog.

1 - ‘Embed fonts’ checkbox is checked at the Fonts tab of the HTML option dialog.

SAVEAS_HTML_EMBEDLICENSEDFONTS:

0 - ‘Embed licensed fonts’ checkbox is unchecked at the Fonts tab of the HTML option dialog.

1 - ‘Embed licensed fonts’ checkbox is checked at the Fonts tab of the HTML option dialog.

SAVEAS_HTML_CREATEFONTSUBSET:

0 - ‘Create font subset’ checkbox is unchecked at the Fonts tab of the HTML option dialog.

1 - ‘Create font subset’ checkbox is checked at the Fonts tab of the HTML option dialog.

SAVEAS_HTML_FORCEFONTSCOUNT:

      Number of force to embed fonts at the Fonts tab of the HTML option dialog.

SAVEAS_HTML_FORBIDFONTSCOUNT:

      Number of forbidden to embed fonts at the Fonts tab of the HTML option dialog.

SAVEAS_REDIRECTPRINTING:

      0 - ‘Redirect Printing’ checkbox is unchecked.

            1 - ‘Redirect Printing’ checkbox is checked.

SAVEAS_SENDINEMAIL:

      0 - ‘Send printed document in email’ checkbox is unchecked.

            1 - ‘Send printed document in email’ checkbox is checked.

SAVEAS_UPLOADTOSHAREPOINT:

      0 - ‘Upload to SharePoint’ checkbox is unchecked.

            1 - ‘Upload to SharePoint’ checkbox is checked.

SAVEAS_PRINTWATERMARK:

      0 - ‘Print Watermark’ checkbox is unchecked.

            1 - ‘Print Watermark’ checkbox is checked.

SAVEAS_REDIRECT_PRINTING_COUNT:

      Number of printers to redirect.

SAVEAS_WATERMARK_FIRSTPAGEONLY:

      0 - ‘Add watermark to the first page only’ checkbox is unchecked at the watermark settings dialog.

            1 - ‘Add watermark to the first page only’ checkbox is checked at the watermark settings dialog.

SAVEAS_WATERMARK_P_STRETCHTOWIDTH:

      0 - Position of the portrait watermark image is not set to ‘Stretch to Width’ at the watermark settings dialog.

            1 - Position of the portrait watermark image is set to ‘Stretch to Width’ at the watermark settings dialog.

SAVEAS_WATERMARK_P_STRETCHTOFIT:

      0 - Position of the portrait watermark image is not set to ‘Stretch to Fit’ at the watermark settings dialog.

            1 - Position of the portrait watermark image is set to ‘Stretch to Fit’ at the watermark settings dialog.

SAVEAS_WATERMARK_P_TILE:

      0 - Position of the portrait watermark image is not set to ‘Tile’ at the watermark settings dialog.

            1 - Position of the portrait watermark image is set to ‘Tile’ at the watermark settings dialog.

SAVEAS_WATERMARK_L_STRETCHTOWIDTH:

      0 - Position of the landscape watermark image is not set to ‘Stretch to Width’ at the watermark settings dialog.

            1 - Position of the landscape watermark image is set to ‘Stretch to Width’ at the watermark settings dialog.

SAVEAS_WATERMARK_L_STRETCHTOFIT:

      0 - Position of the landscape watermark image is not set to ‘Stretch to Fit’ at the watermark settings dialog.

            1 - Position of the landscape watermark image is set to ‘Stretch to Fit’ at the watermark settings dialog.

SAVEAS_WATERMARK_L_TILE:

      0 - Position of the landscape watermark image is not set to ‘Tile’ at the watermark settings dialog.

            1 - Position of the landscape watermark image is set to ‘Tile’ at the watermark settings dialog.

SAVEAS_WATERMARK_P_FIRST_IMAGE_POSITION:

            1 - Position of the portrait watermark image on the first page is set to ‘Stretch to Fit’ at the watermark settings dialog.

            2 - Position of the portrait watermark image on the first page is set to ‘Stretch to Width’ at the watermark settings dialog.

            4 - Position of the portrait watermark image on the first page is set to ‘Center’ at the watermark settings dialog.

            8 - Position of the portrait watermark image on the first page is set to ‘Tile’ at the watermark settings dialog.

SAVEAS_WATERMARK_L_FIRST_IMAGE_POSITION:

            1 - Position of the landscape watermark image on the first page is set to ‘Stretch to Fit’ at the watermark settings dialog.

            2 - Position of the landscape watermark image on the first page is set to ‘Stretch to Width’ at the watermark settings dialog.

            4 - Position of the landscape watermark image on the first page is set to ‘Center’ at the watermark settings dialog.

            8 - Position of the landscape watermark image on the first page is set to ‘Tile’ at the watermark settings dialog.

SAVEAS_WATERMARK_UNIQUE_FIRST_ENABLED:

      0 - ‘Unique watermark on the first page’ checkbox is unchecked at the watermark settings dialog.

            1 - ‘Unique watermark on the first page’ checkbox is checked at the watermark settings dialog.

SAVEAS_WATERMARK_P_BRIGHTNESS:

      Brightness value of the portrait watermark image. Available values: 10, 20, 30, 40, 50, 60, 70, 80, 90, 100.

SAVEAS_WATERMARK_L_BRIGHTNESS:

      Brightness value of the landscape watermark image. Available values: 10, 20, 30, 40, 50, 60, 70, 80, 90, 100.

SAVEAS_WATERMARK_P_FIRST_BRIGHTNESS:

      Brightness value of the portrait watermark image on the first page. Available values: 10, 20, 30, 40, 50, 60, 70, 80, 90, 100.

SAVEAS_WATERMARK_L_FIRST_BRIGHTNESS:

      Brightness value of the landscape watermark image on the first page. Available values: 10, 20, 30, 40, 50, 60, 70, 80, 90, 100.

SAVEAS_WATERMARK_P_CENTER:

      0 - Position of the portrait watermark image is not set to ‘Center’ at the watermark settings dialog.

            1 - Position of the portrait watermark image is set to ‘Center’ at the watermark settings dialog.

SAVEAS_WATERMARK_L_CENTER:

      0 - Position of the landscape watermark image is not set to ‘Center’ at the watermark settings dialog.

            1 - Position of the landscape watermark image is set to ‘Center’ at the watermark settings dialog.

 

Return value

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None