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 / March 2005

Tip: Looking for answers? Try searching our database.

NewFromSolutionWithData parameters

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MattM - 28 Feb 2005 22:55 GMT
According to the documentation on MSDN this method is defined as:

NewFromSolutionWithData(ByVal varXMLData As Variant, ByVal varSolutionURI As
Variant, [ByVal dwBehavior As Long = 1]) As XDocument

and here's the details on the first parameter:

varXMLData    Required Variant. Provides the XML data to be used as a
template for the form. Can be a string that specifies the Uniform Resource
Identifier (URI) of an XML document, or an XMLDOMNode that contains the XML
to be used as the XML document (template).

I'm not sure what the possible values are for the first parameter. I
understand it can point to an XML document via URI but the XMLDOMNode is
unfamilar. I've tried to search for the definition of this object but the
closest quote I can find is that:

"The DOMDocument object itself is an XMLDOMNode object".

Can someone explain exactly what is an XMLDOMNode or what this first
parameter can be? The closest match I've found is the return value of
documentElement method for the DOMDocument50 object
(DOMDocument50.documentElement). I'd like to know all the possible objects
and not just guess.
MattBell - 01 Mar 2005 15:27 GMT
You are on the right path,
What I did for my solution was to create an object of type
"MSXML2.DOMDocument.3.0"

Then I loaded my xml string into it  (ie XmlDoc.LoadXml(stringVar) )
then on my call to infopath I pass it the root element of the dom object,
and the url of the infopath form I'm opening.

NewFromSolution(XmlDoc.documentElement,form_url)

The one thing I have noticed is that if something fails, it's hard to
determine what exactly. And it fails all together. But I have done this
successfully.

> According to the documentation on MSDN this method is defined as:
>
[quoted text clipped - 20 lines]
> (DOMDocument50.documentElement). I'd like to know all the possible objects
> and not just guess.
 
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.