#include "BiAutoPrint.h"
BOOL BIAPSetIntProperty(LPCTSTR szProperty, int iValue);
Description
This function can be used to configure various settings of Auto-print.
The function must be used after the BIAPInitialize function has been called. The INI file is read during initialization. This function will change the settings for the current Auto-print instance, for the current thread. It will not change the INI file.
Currently the following settings can be changed using this function:
Property (Set the szProperty parameter to this value to set the property) |
Description |
Possible Values (Set the iValue parameter to one of these values) |
INI file key used to configure the same setting |
“EmailSettings.PrintMode” |
When printing MSG or EML files, print the email (Email body with From, Sent, To and Subject field), email body, the attachments or both |
0: Print email and attachments (default) 1: Print the email only 2: Print email body and attachments 3: Print the email body only 4: Print the attachments only |
[Email Settings] Print Mode=0 |
“EmailSettings.Merge” |
When printing MSG or EML files, merge the email body and attachments to a single output file, or convert each file to a separate output file. |
0: Print the email body and attachments separately (default) 1: Merge the files into a single output file. |
[Email Settings] Merge=0 |
“EmailSettings.CreateDirectory” |
Create a subdirectory for the output of each MSG and EML file. |
0: Do not create a subdirectory (default) 1: Create a subdirectory (the name of the directory will be same as the name of the MSG/EML file) |
[Email Settings] Create Directory=0 |
“PDFSettings.UseFoxitReader” |
To use Foxit Reader for printing PDF files, set the value to 1. To use Adobe Reader, set both “PDFSettings.UseFoxitReader” and “PDFSettings.UseBuiltInPDFConverter” to 0. |
1: Use Foxit Reader to print PDF files. 0: Do not use Foxit Reader. |
[PDF Settings] Use Foxit Reader=0 |
“PDFSettings.UseBuiltInPDFConverter” |
To use the built-in converter for printing PDF files, set the value to 1. To use Adobe Reader, set both “PDFSettings.UseFoxitReader” and “PDFSettings.UseBuiltInPDFConverter” to 0. |
1: Use the built-in converter. 0: Do not use the built-in converter. |
[PDF Settings] Use Built-In PDF Converter=0 |
“ImageSettings.KeepOriginalImageSize” |
Sets the scaling mode when converting images (TIFF, JPEG, PNG, BMP or GIF files). |
0: Scale the images to the printer's paper size (default) 1: Keep the original size and orientation of the images |
[Image Settings] Keep Original Image Size=0 |
“ImageSettings.KeepOriginalOrientation” |
Sets the page orientation when converting images (TIFF, JPEG, PNG, BMP or GIF files). This option can only be used if the "ImageSettings.KeepOriginalImageSize" option is set to 0 |
0: Use the printer's orientation settings, scale the images to fit on the page (default) 1: Change the printer's page orientation automatically according to the image orientation. |
[Image Settings] Keep Original Orientation=0 |
Parameters
Input value: szProperty - The property to configure, see the “Property” column in the table above for the possible properties.
Input value: iValue - The new value of the property. See the “Possible Values” column in the table above.
Return value
TRUE on success, otherwise FALSE.
Requirements
Header: |
BiAutoPrint.h |
Library: |
BiAutoPrint32.lib (for 32 bit) BiAutoPrint64.lib (for 64 bit) |
DLL: |
BiAutoPrint32.dll (for 32 bit) BiAutoPrint64.dll (for 64 bit) |