Configuring the Auto-print Service C# Sample

To configure the Auto-print Service Sample, edit the Auto Print Service C# Sample.ini file in the directory <Auto-print SDK Installation folder>\<AutoPrint 32/64 bit>\Samples Directory.

 

Any changes to the Auto Print Service C# Sample.ini require the service to be restarted.

 

The INI file should contain the following text:
        

[Printer Settings]

Printer Name=Black Ice ColorPlus

 

[AutoPrint Service]

logfile=c:\AutoPrintService\AutoPrintService.log

Monitored Directory=c:\AutoPrintService\in\

Converted Directory= c:\AutoPrintService\converted

Processed Directory=c:\AutoPrintService\processed

Failed Directory=c:\AutoPrintService\failed\

Startup Delay=100

Profile=Display PDF


Description of the settings:

Printer Name:Fill in the name of the Black Ice printer you want to use (without ‘<’and ‘>’)

 

Settings under [AutoPrint Service] are the Auto-print Service Sample specific settings:

 

logfile:The file name of the log file where you want the sample to write the messages.(If the path contains an inaccessible or non-existing folder, the log file will be generated into the Root directory of Drive C:\). For more information about the logging, please refer to the Using the Auto-print Service C# Samplesection.

 

Monitored Directory: Specifies the path of the directory which contains the documents need to be converted.

 

Converted Directory: Specifies the path of the directory which contains the successfully converted documents. If it’s not configured, the converted documents will be saved into the Printer Driver’s output directory.

 

Processed Directory: Specifies the path of the directory which contains the original documents, which were successfully processed/converted.

 

Failed Directory: Specifies the path of the directory which contains the original documents, which weren’t successfully converted.

 

Startup Delay (optional parameter): Specifies the time in seconds to start the conversion process by the Auto-print Service after the service is started. The purpose of the Startup Delay is to make sure that certain required processes used by the Auto-print Service for conversions are started and running, before Auto-print Service starts the conversion. The built in Startup Delay is 100 seconds.

 

Profile: Auto-print Service has the capability to apply conversion profiles for commonly used conversion tasks. Specify the profile name (for example: Display TIFF, Fax Standard Resolution), save the INI file and restart the Auto-print Service in the Administrative Tools > Services.

 

NOTE: 32-bit Auto-print samples cannot load profiles from 64-bit Black Ice Printer Drivers installed on 64-bit operating systems.

 

List of the available profiles

To see the available profiles of a Black Ice Printer Driver, go to Control Panel > Printers and Devices > right click on the selected Black Ice Printer Driver > Printing Preferences > Profile Manager Tab and click on the dropdown list to see the available profiles. When specifying the profile, in the Auto Print Service C# Sample.ini file, use the Profile name displayed in the Profile Manager Tab dropdown list. (For example: Display TIFF, Display PDF)

 

Using not listed profiles

To use other profile files that are not installed with the driver by default, first import the profile into the driver from the Profile Manager tab, then the imported profile can be specified in the INI file.

 

 

PDF Converter Settings: Select the application to use for PDF printing. The Auto-Print sample supports Adobe Reader 10 or higher, Adobe Acrobat Pro 10 or higher and Foxit Reader 9.6 or higher. If both applications are available, ‘Use Adobe Reader to print PDF files’ option is selected by default.

NOTE: To print PDF documents, Adobe Reader 10 or higher, Adobe Acrobat Pro 10 or higher or Foxit Reader 9.6 or higher has to be installed on the computer; otherwise PDF printing is not possible.