Runtime Error when using SolutionXMLElement

P

Patrik Lindvall

Hi,

I have a small application were some custom XML is stored
in an external file, using the MSXML2 functionality.
This all works fine, but as the XML is small I would
prefer to store it inside the Visio Document.

So right now I am trying to use the SolutionXMLElement
but when my code gets to
doc.SolutionXMLElement("myXMLData")= myXMLstr
I get a VB runtime error -2032465751 (86db09a9)
invalid Parameter.

Am running Visio 2002 SR-1 (10.0.2705)

Any one else got the SolutionXML parts to work ?

Kind Regards

Patrik
 
B

Bill K. [MSFT]

Your xml needs to be inside a SolutionXML tag like this:
<SolutionXML Name='myXMLData'>
<MyXml>
....
</MyXml>
</SolutionXML>
For more details, look up the SolutionXMLElement property in the developer
reference.

Or, you can write your xml to a document user cell:
ActiveDocument.DocumentSheet.AddNamedRow (visSectionUser, "myXMLData", 0)
ActiveDocument.DocumentSheet.Cells("User.myXMLData").Formula = """" &
myXMLstr & """"


Hope this helps,
 

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