Auto-print Service C++ Sample

 

This section contains information about how to Install, Build, Redistribute and Use the Auto-print Service C++ Sample. The Auto-print service sample demonstrates automated batch printing or document conversion solutions without user interaction in Windows services. The Auto-print Service technology can be only used with Black Ice printer drivers. The Auto-print API can be executed on Windows 2022/2019/2016/2012 services to convert documents and Image files. Please refer to the Supported Document Type section to see the supported file formats to convert.

 

To see the detailed instructions on how to Rebuild, Install and Use the sample, please see the Installing the Auto-print C++ Service Sample. For redistributing the Auto-print Service sample, please see the necessary files in Redistribution files of Auto-print Service C++ Sample section.

 

Benefits of document conversion running as service:

The Auto-print service can run under "Administrator" account instead of under a particular user or System Account. This allows the Auto-print service to continue the document conversion even after the current user logs off in unattended mode.

 

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.

 

Fine tuning Auto-print Samples

The Auto-print C#, C++, VB.NET and Service samples timeout interval, printing delay interval and password protection checking can be configured through the BiAutoPrint.ini file for the better document conversion. For more information please refer to Fine tuning Auto-print Samples section.

 

Filename Generation

The Auto-print will save the printed documents in the same name as the source input document. For example, if printing 1.jpg to PDF file format, then the printed document will be named to 1.pdf.

NOTE: If there is already a file named 1.pdf, Auto-print will overwrite the existing file.

 

Sample Source Code Folder Location:

<Auto-print Installation Folder>\<Auto-print 32/64 bit>\Samples\Sample Source Codes\Auto Print Service C++ Sample

 

Solution files

Compilers

Target .NET Framework

Auto Print Service C++ Sample_VS2005.sln

Visual Studio 2005

.NET Framework 2.0

Auto Print Service C++ Sample_VS2010.sln

Visual Studio 2010

.NET Framework 4.0

Auto Print Service C++ Sample_VS2012.sln

Visual Studio 2012

.NET Framework 4.0

Auto Print Service C++ Sample_VS2013.sln

Visual Studio 2013

.NET Framework 4.0

Auto Print Service C++ Sample_VS2015.sln

Visual Studio 2015

.NET Framework 4.0

 

The base requirement is MS Office 2013 or 2010 or 2007 and Adobe Reader 10 or higher or Adobe Acrobat Pro 10 or higher to be installed on the server.