We have an issue where the PrintManager is causing an exception on a server but works on other servers using the same code.
A single page does get printed but is blank. The same source code works on an alternative server to the same printer using the same document.
We would really appreciate it if you could inform us about spooling some debugging information to compare the servers.
Thanks in advance for you speedy reply
PSD.
Printer Manager Product Version: 1.0.1.18760
Printer Manager File Version: 1.0.1.18760
------------------------------------------------------------------
The code that we use to print is:
// Load the document
byte[] binDoc = docData.GetDocument(this.UserId(), doc.DocId);
// print the document from the byte stream
var printJob = new PrintJob(doc.PrinterUri, new InputPdf(binDoc));
printJob.Print();
------------------------------------------------------------------
The exception is:
1 Exception Information
-----------------------------------------------------
Severity: Normal
CreatedDateTime: 05/23/2012 10:48:14
MachineName:
ThreadIdentity:
WindowsIdentity: GLOBAL
Message: Printing
-----------------------------------------------------
Additional Information
debug: Printing
enablePrinting : True
User : UNKNOWN
Document Id : 125462
Document Dist Method : Post
Printer Uri : [\\LDNPRINT\PRN-LDN0063-03-M01-BW]
inputPdf.Pages.Count : [1]
StackTrace:
at ceTe.DynamicPDF.Printing.PrintJob.Print()
At Processors.DistributionListReportCommandProcessor.Print(Decimal sdlId, ReportId report, Printer printer)
printJob.PagesPrinted: 31,0,\\LDNPRINT\PRN-LDN0063-03-M01-BW
2 Exception Information
-----------------------------------------------------
Exception Type: ceTe.DynamicPDF.Printing.PrintFailedException
Message: An error occurred while printing the document's pages.
Data: System.Collections.ListDictionaryInternal
TargetSite: Void Print()
HelpLink: Null
Source: ceTe.DynamicPDF.Printing.40.x86
3 Exception Information
-----------------------------------------------------
Exception Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Data: System.Collections.ListDictionaryInternal
TargetSite: Void* c()
HelpLink: Null
Source: ceTe.DynamicPDF.Printing.40.x86
Print Manger printing one blank page add causes exception.
Re: Print Manger printing one blank page add causes exception.
Forum member · May 23, 2012
I forgot to add this is a network printer not a locally installed printer.
PSD
Re: Print Manger printing one blank page add causes exception.
Support · May 24, 2012Hello,
This exception was caused by the service account (the application is running under) not having enough privileges to access or print to the printer. In such cases check the security tab in the printer properties to make sure the account has proper permissions on the printer.
Thanks,
ceTe Software Support Team