D
Donna
Hello -
I have code that previously used to work and after some office updates and
some uninstall of other forms eval software - no longer works.
It occurs on the newXMLForm.DOM statement below. As you can see I'm opening
IP on my server to create a new xml file from an xsn. I then update some
values in the xml so that my form is prepopulated with data from our web
application when IP opens it.
ipApp = New Microsoft.Office.Interop.InfoPath.ApplicationClass
newXMLForm =
ipApp.XDocuments.NewFromSolution("D:\Inetpub\wwwroot\MMDS\OALPrescriptionForm.xsn")
Dim nodeQueryCustomerId As IXMLDOMNode
nodeQueryCustomerId = newXMLForm.DOM.selectSingleNode("//s0:customerId")
nodeQueryCustomerId.text = CStr(theUser.CustomerId)
The error I am getting is:
[System.Runtime.InteropServices.COMException]
Message "Interface not registered"
ErrorCode -2147221163 Integer
Source "Microsoft.Office.Interop.InfoPath"
StackTrace " at Microsoft.Office.Interop.InfoPath.XDocumentClass.get_DOM()
at MMDS.CreateBlankForm.Page_Load(Object sender, EventArgs e) in
D:\Inetpub\wwwroot\MMDS\Forms\CreateBlankForm.aspx.vb:line 89" String
The other thing that is going on is that these lines:
ipApp = New Microsoft.Office.Interop.InfoPath.ApplicationClass
newXMLForm =
ipApp.XDocuments.NewFromSolution("D:\Inetpub\wwwroot\MMDS\OALPrescriptionForm.xsn")
Used to launch InfoPath client on the server - but now the executable opens
in the background - I can see it in Task Manager - but no UI opens as before.
I'm assuming this is related to my issue. (This is actually kind of a nice
feature if I could get it to work this way.)
As I stated this worked for me for quite a while - I am open to any
suggestions I've spent probably 10 hours on this issue now since it started
occurring yesterday morning.
Thanks!
Donna
I have code that previously used to work and after some office updates and
some uninstall of other forms eval software - no longer works.
It occurs on the newXMLForm.DOM statement below. As you can see I'm opening
IP on my server to create a new xml file from an xsn. I then update some
values in the xml so that my form is prepopulated with data from our web
application when IP opens it.
ipApp = New Microsoft.Office.Interop.InfoPath.ApplicationClass
newXMLForm =
ipApp.XDocuments.NewFromSolution("D:\Inetpub\wwwroot\MMDS\OALPrescriptionForm.xsn")
Dim nodeQueryCustomerId As IXMLDOMNode
nodeQueryCustomerId = newXMLForm.DOM.selectSingleNode("//s0:customerId")
nodeQueryCustomerId.text = CStr(theUser.CustomerId)
The error I am getting is:
[System.Runtime.InteropServices.COMException]
Message "Interface not registered"
ErrorCode -2147221163 Integer
Source "Microsoft.Office.Interop.InfoPath"
StackTrace " at Microsoft.Office.Interop.InfoPath.XDocumentClass.get_DOM()
at MMDS.CreateBlankForm.Page_Load(Object sender, EventArgs e) in
D:\Inetpub\wwwroot\MMDS\Forms\CreateBlankForm.aspx.vb:line 89" String
The other thing that is going on is that these lines:
ipApp = New Microsoft.Office.Interop.InfoPath.ApplicationClass
newXMLForm =
ipApp.XDocuments.NewFromSolution("D:\Inetpub\wwwroot\MMDS\OALPrescriptionForm.xsn")
Used to launch InfoPath client on the server - but now the executable opens
in the background - I can see it in Task Manager - but no UI opens as before.
I'm assuming this is related to my issue. (This is actually kind of a nice
feature if I could get it to work this way.)
As I stated this worked for me for quite a while - I am open to any
suggestions I've spent probably 10 hours on this issue now since it started
occurring yesterday morning.
Thanks!
Donna