Secondary Datasource with VB.NET

H

Harald

Hello,
I need an example how to access a secondary datasource with vb.net.
I tried following:

Dim objDataObject As ADOAdapter =
thisXDocument.DataObjects("Kunde").QueryAdapter
thisXDocument.DataObjects("tblKunden").Query()
Dim myDoc As IXMLDOMDocument2 = thisXDocument.DataObjects("Kunde").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 want to read with selectSingleNode or selectNodes there occurs an
error:
"selectSingleNode" is not clear. It is used in
"Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMDocument" and in
"Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode".

Thanks,
Harald
 

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