XDocument.PrintOut()

R

ram.sangam

I am developing an application (in C# .NET) which opens an Infopath
document and calls the XDocument.PrintOut() method to print the
document. When calling this method, I am getting an exception which
says "InfoPath cannot print the form.\nEither you do not have any
printers installed or the current printer is unavailable. Choose
another printer, or install a new one." But I can manually open the
InfoPath document and Print the document to the network-printer
installed on my machine?

Is there anything missing on my machine?

Thanks.
 
R

ram.sangam

I checked that the form's security is set to Full Trust.

Fixed the issue....In the View's Properties->Page Setup, the Printer
was set to a printer which was not installed on my machine. Changed
the printer to (default), works fine.

Thanks,
Ram
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top