If you haven’t already, please consult the help topic "Printer Driver Files To Be Included With Your Application". At the time of this post, you can find it here:
https://www.leadtools.com/help/v19/dh/to/leadtools.topics.printer~pr.topics.printerdriverfilestobeincludedwithyourapplication.html
You seem to have covered some of these requirements, but I will go over them with you to make sure the printer is deployed correctly:
1. The folder structure: Create a folder and name it any name you want.
I see here that you used “C:\LEADTOOLS 19\Redist\Virtual Printer\Common\Bin\”, this is not strictly necessary, as you can use any valid folder (eg: “C:\Test”), but what you used is still valid.
Remember to ensure that all users of the printers must have access to the folder.
The folder needs to contain the following two sub-folders:
\Bin – This folder should contain the LeadtoolsPrinter.exe executable file, this can be found here:
[LEADTOOLS 19]\Redist\Virtual Printer\Common\Bin\LeadtoolsPrinter.exe
\Spool – This folder will be empty.
I see that you have done this as well.
2. The COM Servers: Copy the following DLLs and EXEs to the folder you made earlier and register them:
LPCLB06N.dll
LPCPN06N.dll
LPPRNCON.dll
LPCMG06N.exe
LPWSE06N.exe
LpPrinterThunk.exe
For DLL files, you should use regsvr32. (regsvr32 <filename>.DLL)
For EXE files, you should use /RegServer. (<exefilename> /Regserver)
Important note: After registering the virtual printer EXEs
(LpPrinterThunk.exe, LPCMG06N.exe and LPWSE06N.exe) using the Regserver command, you need to open the Task manger and check the "Processes" tab. If you cannot see the virtual printer Exes in the Process tab, this means that the Regserver command succeeded.
These files can be found here:
[LEADTOOLS 19]\Redist\Virtual Printer\Common\ComSvr\
3. Required DLLs:
This part depends on your operating system:
In your signature, it says you're using x64 Windows. If that's the case, do the following:
Copy the following DLLs to the System32 folder:
LPDRV06x.dll
LPPMN06x.dll
LPUID06x.dll
You can find these files here:
[LEADTOOLS 19]\Redist\Virtual Printer\Common\Driver\Winx64\
For a 32-bit edition of Windows, do the following:
Copy the following DLLs to the System32 folder:
LPDRV06.dll
LPPMN06.dll
LPUID06.dll
Important note:
These files (32 vs 64 bit) depend on the Windows edition, not your main application. This means deploy the "LP*06x" files on x64 Windows even if your application is 32-bit.
After you have obtained and registered all the necessary files, use the following method in your program to install your printer:
https://www.leadtools.com/help/v19/dh/pr/leadtools.printer~leadtools.printer.printer~install.html
Note that you will need to reference the following assemblies in any program that uses the virtual printer:
Leadtools.Printer.dll
Leadtools.Printer.Client.dll
Leadtools.Printer.Client.Installer.dll
These can be found at:
For .NET2 and 32-bit applications:
[LEADTOOLS 19]\Redist\Virtual Printer\Dotnet\Win32\
For .NET4 and 32-bit applications:
[LEADTOOLS 19]\Redist\Virtual Printer\Dotnet4\Win32\
For .NET2 and 64-bit applications:
[LEADTOOLS 19]\Redist\Virtual Printer\Dotnet\x64\
For .NET4 and 64-bit applications:
[LEADTOOLS 19]\Redist\Virtual Printer\Dotnet4\x64\
Hussam Barouqa
Developer Support Engineer
LEAD Technologies, Inc.