Submit a Form to a SharePoint Form Library

T

Troy Zirk

I copied the code from the "Submit a Form to a SharePoint Form Library"
topic in the InfoPath SDK, changing only the URL to point to my form
library.

I inserted a "debugger;" statement above the submit code, to debug the
application.

The sample code fails on "objXmlHttp.Send();". The catch statement takes
over. The error message is as follows:

"Save failed due to the following error. -2146697208 - The download of
the specified resource has failed."

What could be causing this error? The URL I specified that points to my form
library is the correct URL.

Thanks.

Troy
 
T

Troy Zirk

I discovered a solution to this issue.

I found an online example of how to submit an InfoPath form through JScript
code. the only real difference was that the ActiveXObject used was a
different object reference. The online example uses "MSXML2.XMLHTTP", while
the InfoPath SDK example uses "MSXML2.XMLHTTP.5.0". Once I changed the
object reference to the online example ("MSXML2.XMLHTTP"), it worked!

Troy
 

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