Exception while printing

72 views
Skip to first unread message

James Dustin

unread,
Dec 9, 2014, 4:26:30 PM12/9/14
to pdfne...@googlegroups.com
Hi, any ideas what might be causing this problem with printing?

The code was just a quick test by cutting and pasting the code from the first sample in the PDFPrintTest.cpp.html sample code into an existing program

Exception:
     Message: Could not create XpsOMObjectFactory
     Conditional expression: SUCCEEDED(hr)
     Filename   : PDFPrintDocSpoolerWin.cpp
     Function   : trn::PDF::Print::PDFPrintDocSpoolerWin::StartXpsPrintJob
     Linenumber : 791


Thanks,
James Dustin

Aaron

unread,
Dec 9, 2014, 4:57:07 PM12/9/14
to pdfne...@googlegroups.com
Hi, James!   

What platform are you running on?  On pre-Vista versions you would need to install the XPS Essentials Pack: 


Obviously another workaround is to rasterize the document and print the result, as show in the second example of the printer sample:


James Dustin

unread,
Dec 9, 2014, 5:55:54 PM12/9/14
to pdfne...@googlegroups.com
Hi Aaron,

I'm trying it on Windows 7.
If it's any help the windows version is 64bit but the application stack is all 32bit.

I'll give the rasterize option a try as well.

Thanks,
James
Reply all
Reply to author
Forward
0 new messages