Add a new printer after Novapdf install asp.net c#
Posted: 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.
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.