Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2006

Tip: Looking for answers? Try searching our database.

Using MSXML2.XMLHTTP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 23 Oct 2006 17:22 GMT
I am using Infopath2003 and have a script.vbs file.

I want to utilize SOAP to send data from within the script.vbs.  Here's part
of my coding:

'<namespacesDefinition>
XDocument.DOM.setProperty "SelectionNamespaces",
"xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-10-19T20:52:46"" xmlns:xd=""http://schemas.microsoft.com/office/infopath/2003"""
'</namespacesDefinition>

'=======
' The following function handler is created by Microsoft Office InfoPath.
' Do not modify the name of the function, or the name and number of arguments.
'=======
Sub CTRL12_5_OnClick(eventObj)
   'Write your code here

   Dim oXmlHttp As MSXML2.XMLHTTP  'cant get past this
   ...

End Sub

I am getting an error message when opening the template that says  "Expected
End of statement at Line 22"  

Its referring to the "Dim" line.  

Is there something I am missing or not doing?  I am wondering if i cant do
this in the vbs file and maybe i need to do this in .NET.  If so can someone
give me some guidance on that?
Signature

Jeff Reed

S.Y.M. Wong-A-Ton - 24 Oct 2006 06:40 GMT
VBScript does not know typed variables. Change the line into

Dim oXmlHttp

and you should be fine.
---
S.Y.M. Wong-A-Ton

> I am using Infopath2003 and have a script.vbs file.
>
[quoted text clipped - 27 lines]
> this in the vbs file and maybe i need to do this in .NET.  If so can someone
> give me some guidance on that?
Jeff - 30 Oct 2006 21:52 GMT
Thanks SYM!

Signature

Jeff Reed

> VBScript does not know typed variables. Change the line into
>
[quoted text clipped - 35 lines]
> > this in the vbs file and maybe i need to do this in .NET.  If so can someone
> > give me some guidance on that?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.