Auto-print Multi-Threaded Service C# Sample

 

Auto-print Multi-Threaded Service C# Sample designed to demonstrate parallel multi-threaded document conversion using multiple (1…N) printer drivers.

 

This section contains information about how to Install, Build, Redistribute and Use the Auto-print Multi-Threaded Service C# Sample. The Auto-print Multi-Threaded service sample demonstrates automated batch printing with multiple Black Ice Printer Drivers without user interaction. The Auto-print Multi-Threaded Service technology can be only used with Black Ice printer drivers. The Auto-print API can be executed on Windows 2022/20192016/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 Multi-Threaded Service Sample. For redistributing the Auto-print Multi-Threaded Service sample, please see the necessary files in Auto-print Multi-Threaded Service C# Redistribution files 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 Multi-Threaded service to continue the document conversion even after the current user logs off in unattended mode.

 

The Auto-print Multi-Threaded service must run under a local administrator account. The administrator must be logged into the computer once to create a desktop for the administrator. The Auto-print Multi-Threaded service cannot be 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 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 with 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 Multi-Threaded Service C# Sample

 

Solution files

Compilers

Target .NET Framework

Auto Print Multi-Threaded Service C# Sample_VS2005.sln

Visual Studio 2005

.NET Framework 2.0

Auto Print Multi-Threaded Service C# Sample_VS2010.sln

Visual Studio 2010

.NET Framework 4.0

Auto Print Multi-Threaded Service C# Sample_VS2012.sln

Visual Studio 2012

.NET Framework 4.0

Auto Print Multi-Threaded Service C# Sample_VS2013.sln

Visual Studio 2013

.NET Framework 4.0

Auto Print Multi-Threaded Service C# Sample_VS2015.sln

Visual Studio 2015

.NET Framework 4.0

 

Output path of the built sample executable:

Debug:

            <Auto-print Installation Folder>\<Auto-print 32/64 bit>\Samples\Sample Source Codes\C#\Auto Print Multi-Threaded Service C# Sample\bin\Debug\

 

Release:

            <Auto-print Installation Folder>\<Auto-print 32/64 bit>\Samples\Sample Source Codes\C#\Auto Print Multi-Threaded Service C# Sample\bin\Release

 

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