I am trying to dynamically load a document in Infopath 2007. I would like to
capture the FormEvents_Loading event and load the data from the database. The
aim is to replace the maindatasource with the xml that I have retreived.
InfoPath exposes the MainDataSource via the XPathNavigator. I have
attempted to repalce the XPathNavigator's document and I run into the
following error: "Operation is not valid due to current position of
I would be grateful for any assistance on how to replace the document
underlying the XPathNavigator.