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.
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.