Installing the Auto-print Service C++ Sample

 

This section contains information about how Install the Auto-print C++ Service Sample. To Install the C++ Service Sample application, please follow the instructions below.

 

To simply install and try the sample from the Auto-print SDK, jump to step 3 in the instructions below.

 

1.     Compile the sample and copy the compiled sample into the following directory:

<Auto-print SDK Installation folder>\<Auto-print 32/64 bit>\Samples

 

NOTE: For redistributing the Auto-print Service sample, please see the necessary files in Redistribution files of Auto-print Service C++ Sample section.

 

2.    Configure the Auto-print Service sample based on the Configuring the Auto-print Service C++ Sample section.

 

3.     Installation of the Auto-print service sample

One can use the following command in Command Line (cmd.exe) to install the sample as a service:

 

"Auto Print Service C++ Sample.exe" –install
Or
"Auto Print Service C++ Sample.exe" –remove
To remove it

 

4.    Starting the sample

Create the Monitored directory specified in the Auto Print Service C++ Sample.ini, and copy the files into the input directory you would like to convert.

 

After the Monitored folder is created and the service is installed go the Microsoft Services app from Control Panel > Administrative Tools > Services > right click on the Auto-Print Service > Properties > Log On tab > Configure the Administrator account > Click on Apply and Ok.

 

The Auto-print service must run under a local administrator account who already once logged in on the computer. The Auto-print service cannot run under system account.

 

AutoPrintServiceSetAdmin

 

In the Services Window, select AutoPrint Service and Click on Start Service button.

 

Another option to start the service is by using command line. After the Administrator account is configured for the Auto-print Service in Microsoft Services, you can start the Auto-print Service by opening a command line as Administrator and type the following command, to start the service:

 

net start "Auto Print Service C++ Sample"

5.    The Auto-print Service Sample will convert the files automatically into the configured output directory.

 

The Auto-print Service will use converter settings (file format, page size, etc.) from the Black Ice Printer Driver, specified in the Auto Print Service C++ Sample.ini file.

 

The log file will be generated in the directory specified in the INI file.

 

NOTE: The Microsoft Office must be registered on the system, to print MS Word, Excel, PowerPoint, Visio, TXT files with Auto-print.

 

Save As window, Open Output folder and Group file generation restrictions

The Auto-print samples does not allows Save As window pop up during the conversion, Open Output Feature, and Group file generation even if it’s configured in the Black Ice Printer Driver used for conversion.