LEADTOOLS Support
Document
Document SDK Questions
Error with LeadTools.Printer Install function
#1
Posted
:
Thursday, December 17, 2020 7:28:56 AM(UTC)
Groups: Registered
Posts: 3
Thanks: 1 times
Hi, as in "Printer class, Install" section, I have tried to program as tutorial, but get the following error:
Exception thrown: 'Leadtools.RasterException' in Leadtools.Printer.dll
Leadtools.RasterException: Function not successful
at Leadtools.Printer.PrinterDriverException.CheckErrorCode(Int32 code)
at Leadtools.Printer.Printer.Install(PrinterInfo printerInfo)
at MDSVirtualPrinter.src.PrinterWorker.InstallMDSPrinter(String name) in W:\DEV\VS2017\MDSVirtualPrinter\MDSVirtualPrinter\src\PrinterWorker.cs:line 152
Could anyone help to solve this problem?
I'm using C# library, .Net 4.6, Visual studio 2017.
Any suggest would be appreciated.
#2
Posted
:
Thursday, December 17, 2020 5:31:35 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 163
Was thanked: 9 time(s) in 9 post(s)
Hello,
Adding a virtual printer requires registry access. Could you ensure the instance of Visual Studio you're developing in has been launched with administrator rights?
Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.
1 user thanked Nick for this useful post.
LEADTOOLS Support
Document
Document SDK Questions
Error with LeadTools.Printer Install function
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.