access a scondary datasource with vb.net

H

Harald Dunkel

Hello,
i need an example for accessing a secondary datasource with vb.net.
I tried following:

Dim myDoc As IXMLDOMDocument2 = thisXDocument.DataObjects("tblKunden").DOM

myDoc.setProperty("SelectionNamespaces",
"xmlns:dfs='http://schemas.microsoft.com/office/infopath/2003/dataFormSolution'
xmlns:d='http://schemas.microsoft.com/office/infopath/2003/ado/dataFields'")

When i try to use selectSingleNode following error occurs:
"selectSingleNode" is not clear. It is used in IXMlDOMDocument and in
IXMLDOMNode

(in german: "selectSingleNode" ist nicht eindeutig. Er wird sowohl in
der geerbten Schnittstelle
"Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMDocument" als auch
in "Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode" verwendet.
)

Thanks,

Harald
 
M

Michelle

Harald

Cast the DOM to IXMLDOMDocument3 instead of IXMLDOMDocument2.

Wandeln Sie das DOM in IXMLDOMDocument3 anstelle von IXMLDOMDocument2
um.

That should work.
Michelle
 

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