M
MikeAtEnbridge
I'm trying to build an app that involves hosting Infopath 2007 in a winform
app. I'm having no end of difficulties. I really wish microsoft would dump
com interfaces once and for all, they are nothing but trouble.
The specific problem I'm dealing with now is export to pdf. I'm using a call
that looks like
formControl1.XmlForm.CurrentView.Export(_u.AbsoluteUri, ExportFormat.Pdf);
At first, this failed all the time, with no helpful message. I finally
discovered that 1) I haqd to install an add on to infopath 2) I had to
publish the template with full trust so that it could write files.
Now, 2 of my 3 forms I'm testing with work. The third, and any more test
forms I create, fail. I can't find any difference between the forms that work
and the ones that don't..
The error I am getting is an 'exception of type 'System.ArgumentException'
occurred in Microsoft.Office.InfoPath.Client.Internal.Host.dll'
Can anyone give me any ideas of what might be going on? Any idea of how to
debug further?
Does anyone even know of a decent sample on the web of using the infopath
formcontrol? By decent I mean something beyond how to stick the control in
the window and load a document. That is the easy part.
Thanks for your help.
app. I'm having no end of difficulties. I really wish microsoft would dump
com interfaces once and for all, they are nothing but trouble.
The specific problem I'm dealing with now is export to pdf. I'm using a call
that looks like
formControl1.XmlForm.CurrentView.Export(_u.AbsoluteUri, ExportFormat.Pdf);
At first, this failed all the time, with no helpful message. I finally
discovered that 1) I haqd to install an add on to infopath 2) I had to
publish the template with full trust so that it could write files.
Now, 2 of my 3 forms I'm testing with work. The third, and any more test
forms I create, fail. I can't find any difference between the forms that work
and the ones that don't..
The error I am getting is an 'exception of type 'System.ArgumentException'
occurred in Microsoft.Office.InfoPath.Client.Internal.Host.dll'
Can anyone give me any ideas of what might be going on? Any idea of how to
debug further?
Does anyone even know of a decent sample on the web of using the infopath
formcontrol? By decent I mean something beyond how to stick the control in
the window and load a document. That is the easy part.
Thanks for your help.