Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, April 7, 2016 5:49:08 AM(UTC)
la_morte1977

Groups: Registered
Posts: 30


Hello,

I could not understand how to distribute the LEADTOOLS Virtual Printer as local printer.
I start with an example in dotnet4 32bit for windows7,8,10. I create those files/folders:

C:\LEADTOOLS 19\Redist\Virtual Printer\Common\Bin\LeadtoolsPrinter.exe
C:\LEADTOOLS 19\Redist\Virtual Printer\Common\Spool
C:\LEADTOOLS 19\Redist\Virtual Printer\Dotnet\Win32\Leadtools.Printer.Client.dll
C:\LEADTOOLS 19\Redist\Virtual Printer\Dotnet\Win32\Leadtools.Printer.Client.Installer.dll
C:\LEADTOOLS 19\Redist\Virtual Printer\Dotnet\Win32\Leadtools.Printer.dll

on system32 I copy all files founded here "C:\LEADTOOLS 19\Redist\Virtual Printer\Common\Driver\Win32" :
C:\Windows\System32\Lpdrv06N.DLL
C:\Windows\System32\LPPMn06u.DLL
C:\Windows\System32\LPUID06N.dll

Do I need other files?
Do I have to create some entry in the system registry?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, April 11, 2016 3:34:13 AM(UTC)

Hussam  
Hussam

Groups: Registered, Tech Support
Posts: 11


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.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.159 seconds.