Add a new printer after Novapdf install asp.net c#

Post here any questions/suggestions you have about novaPDF SDK or novaPDF OEM.
Rakesh
Posts: 1
Joined: Thu Nov 21, 2013 10:31 pm

Add a new printer after Novapdf install asp.net c#

Postby Rakesh » Thu Nov 21, 2013 10:36 pm

Hi
My product supports Novapdf and we named our Novapdf printer as “MyPrinter”. But a third party application has already installed NovaPDF printer on the User’s machine and when installing my product the printer is not installed because the NovaPdf printer already exist. Now if the user already has Novapdf installed then I want to add a new NovaPdf printer with my name “MyPrinter”. How can I do this in my code.I tried the below code but no help.

_NovaOptions = new NovaPdfOptions();

PrinterSettings ps = new PrinterSettings();
ps.PrinterName = “MyPrinter”;
if (!ps.IsValid)
{
_NovaOptions.AddNovaPrinter(“MyPrinter”);
}

I am getting some COM exceptions with errorcode: 0xD5DA0001 which says Initialize was not called. Also sometimes I am not seeing any NovaPDF printer in my printers list even though I installed NovaPDF.
Any help on this much appreciated.

Softland
Posts: 160
Joined: Wed Dec 16, 2009 10:48 am
Location: Cluj-Napoca, Romania
Contact:

Re: Add a new printer after Novapdf install asp.net c#

Postby Softland » Mon Dec 09, 2013 2:20 pm

Hi,
Have you had any luck with this issue? If not, is it possible to send us an email to support@novapdf.com, because we will need more details regarding your application.

Thank you.


Return to “Developer Tools”