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, December 17, 2020 7:28:56 AM(UTC)

tytsai  
tytsai

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.

Jie Tu  2020-12-17 Xia Wu 8.32.48.png
 

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 : Thursday, December 17, 2020 5:31:35 PM(UTC)

Nick  
Nick

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.
LEAD Logo
thanks 1 user thanked Nick for this useful post.
tytsai on 12/22/2020(UTC)
 
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-2024, Yet Another Forum.NET
This page was generated in 0.089 seconds.