Windowless Printing of IndoPath documents

B

Boris Kleynbok

I am trying to print InfoPath XML document.

This is an attempt to setup batch mass printing of InfoPath documents from
outside of InfoPath.

Following code doesn't compile even though the references are set to:
C:\Program Files\Microsoft
Office\OFFICE11\Microsoft.Office.Interop.InfoPath.SemiTrust.dll

using Microsoft.Office.Interop.InfoPath;

Applications App = new Application();
XDocument xdoc = App.XDocuments.Open("C:\test.xml", 0);
xdoc.PrintOut();
App.XDocuments.Close(0);
App.Quit();

What am I missing.

Is there a way to do this without wrapping COM objects.
 

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