This tutorial shows how to configure and run the LEADTOOLS server and client .NET Framework virtual printer demos through the Internet using a Windows Server machine.
Windows Server 2019 is used in this tutorial.
|Summary||This tutorial covers how to use the LEADTOOLS Internet virtual printer client/server communication mechanism.|
|Completion Time||15 - 20 minutes|
|Development License||Download LEADTOOLS|
Be sure to download and install the LEADTOOLS SDK on the Windows Server machine and make sure that the license and key files are located in the
The LEADTOOLS Virtual Printer Driver is required to create and use the virtual printers in this tutorial.
The LEADTOOLS Main Installation installs the Virtual Printer Driver during its initial installation process. During the installation, a prompt appears that asks for permission to install the virtual driver. Installing the driver via the main installation is the easiest way to start using the Virtual Printer Driver.
The driver can also be deployed using the Install, Set up, and Deploy the LEADTOOLS Virtual Printer Driver tutorial.
Internet Information Services (IIS), along with all sub-components, are required to be enabled and installed on the server machine.
On the Windows Server machine, the Print and Document Services and Web Server (IIS) roles, along with the Print Server and Internet Printing role services, must also be enabled in the Server Manager.
With the SDK and IIS installed, the server's virtual printer can now be configured.
Run the LEADTOOLS Printer Server IIS Config demo which is located in
Click Create to add the IIS virtual directory needed for the network virtual printer's service.
With IIS configured, the Network Virtual Printer can be installed using the demo located in
Click Install Printer to create the server's network printer and make sure that both the Enable Network Printing and Share Network Printer options are checked so that the printer is visible to the client machine.
After the printer installed, it will be visible in the browser from
Build the client virtual printer's assembly,
PrinterClientDemo.dll, using the project located in
Once the assembly is created, create the installer executable,
PrinterClientInstallerDemo.exe, using the project located in
Move both files to the client machine and run the installer.
For the Printer Server field, enter the IP of the Windows Server machine configured earlier.
Select the network printer from the drop-down menu.
For the Printer Demo DLL field, enter or browse to the path of the
Click Install to add the client virtual printer to the client machine.
Alternatively, the Virtual Printer Stand-alone Client can be obtained from the LEADTOOLS Downloads and can be used to deploy the client virtual printer on a device that does not have the LEADTOOLS SDK installed. The Installer can be found in
<INSTALL_DIR>\LEADTOOLS Virtual Printer Client 22\Shortcuts
If both server and client machines were configured correctly, the server machine's LEADTOOLS network virtual printer is visible and is installed on the client machine. Printing from the client machine to this printer will produce a dialog to select a save format and output filename.
Clicking OK after entering these fields will produce the output file on the server machine in the designated folder.
This tutorial shows how the LEADTOOLS Virtual Printer can be configured and installed as an Internet server printer on a Windows Server machine. It also shows how the LEADTOOLS Virtual Printer can be configured as a client printer to connect and communicate with the server.