Quantcast
Channel: PDFCreator - pdfforge forums
Viewing all articles
Browse latest Browse all 2621

PdfCreatorObj.PrintFile isn't sending the job to jobqueue

$
0
0

@Anupama wrote:

I am implementing COM interface in C#.
I have initiated JobQueue and called pdfCreatorObj.PrintFile(filepath). After this, the job didn't reach the jobqueue.

Following is the code snippet:

if (pdfCreator.IsInstanceRunning)
{
pdfCreator.PrintFile(srcFileFullName);

  // Wait till doc gets queued up.
        while (jobQueue.Count != 1)
        {
           if (starttime.AddSeconds(timeout) < DateTime.Now)
           {
                WriteToLog("", "Loading document timedout", LogLevel.ERROR );
                 throw new Exception ("Failed to load the document:"+srcFileFullName +" 
                     for printing");
            } 
         }

        PrintJob printJob = jobQueue.NextJob;
        printJob.SetProfileByGuid("DefaultGuid");

        printJob.ConvertTo(finalFileFullName);

}
From the above code I am always getting the exception: "Failed to load the document"

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>