Hi,
I want to start leraning vb with InfoPath 2007 , browser form with local signatur .
with this code
Public Sub btn_code_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
' Fügen Sie hier Code ein.Dim wert As XPathNavigator = _
MainDataSource.CreateNavigator().SelectSingleNode(
"/my:B-formular/my:system/my:dateiname", NamespaceManager)
If wert.Value <> "" ThenMessageBox.Show("Wert: " + wert.Value)
End If
End Sub
i get always this message:
System.Security.SecurityException
Fehler bei der Anfrage.
bei Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test)
bei Microsoft.Office.InfoPath.MsxmlNavigator.MoveToFirstChild()
bei MS.Internal.Xml.XPath.XPathChildIterator.MoveNext()
bei MS.Internal.Xml.XPath.ChildrenQuery.Advance()
bei MS.Internal.Xml.XPath.ChildrenQuery.Advance()
bei MS.Internal.Xml.XPath.ChildrenQuery.Advance()
bei MS.Internal.Xml.XPath.XPathSelectionIterator.MoveNext()
bei System.Xml.XPath.XPathNavigator.SelectSingleNode(XPathExpression expression)
bei System.Xml.XPath.XPathNavigator.SelectSingleNode(String xpath, IXmlNamespaceResolver resolver)
bei Buergerschaft.FormCode.btn_code_Clicked(Object sender, ClickedEventArgs e)
bei Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)
bei Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)
I'ts nearly my first code.
Perhaps someone has an Idea or better: tip - www-adress odr book for learning step by step writing code with InfoPath and Visual Basic.
Thanks
Susanne