Thanks for your reply.
I am talking about the PrintJob.Status propertie returned by the PrintManager.
I have actually tested with a local printer using PDFCreator as the printer and the code snipet below and I was able this time to see
the PrintJob.Status change to "Printing" and then "Complete", but the input PDF file is still not released
by the print manager and it cannot be renamed or moved after it is printed. The only way to release it is to stop the print service (the application).
I even tried to force the print job to release its resources by calling the Dispose() method, but with no luck.
By the way, I tested with the latest Build of the PrintManager that I downloaded today, but the results are the same.
Any assistance to resolve this issue is much appreciated
C# Test code:
public bool PrintPdf(string strFile)
{
bool blnReturn = true;
PrintJob prntJob = null;
try
{
InputPdf inPdf = new InputPdf(strFile);
prntJob = new PrintJob(PrinterQueue, inPdf);
SetPrintJobOptions(prntJob, strFile);
prntJob.Print();
// Wait for job to complete
int intTimeOut = 0;
while (intTimeOut < ConfigTimeOut * 1000)
{
if (prntJob.Status == ceTe.DynamicPDF.Printing.PrintJobStatus.Complete || prntJob.Status == ceTe.DynamicPDF.Printing.PrintJobStatus.Printed)
{
blnReturn = true;
break;
}
intTimeOut += 100;
Thread.Sleep(100);
}
}
catch (Exception ex)
{
// Handle exception
....
}
// Release Printjob resources
// Try to explicitly free the job resources (No change)
prntJob.Dispose();
return blnReturn;
}