MS Infopath 2007

Currently I'm working on MS Infopath 2007 apart from MS CMR 4.0 and MS SSRS 2005. Infopath is quite interesting to work on. Main advantage of Infopath is, a single form can be used as both client and web based forms.

My current project is a web base .net project. All the forms are developed using Infopath. The web based Infopath has limitations compared to client based forms. The Infopath forms are deployed using MS office forms server.

One of the cool features i like with Infopath is the repeating controls. The repeating controls works well in web based forms as well.

Below is the code which used to populate the rows dynamically on the repeating controls.

string myNamespace = NamespaceManager.LookupNamespace("my");
using (XmlWriter writer = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:group1", NamespaceManager).AppendChild())
{
writer.WriteStartElement("Expense", myNamespace);
writer.WriteElementString("Expense_Type", myNamespace, "Cell 1");
writer.WriteElementString("Expense_Name", myNamespace, "Cell 2");
writer.WriteEndElement();
writer.Close();
}

Hope it will be useful for those who works on Infopath. Do mail me in case if u have any doubts on Infopath.

Comments

Amelia said…
Nice blog. I am visiting it for the first time and is impressed with the information you have posted on it. Thanks for posting about your findings and knowledge to help learners like me.
infopath signatures

Popular posts from this blog

D365: Security Permissions for Rich Text Editor

In Prosoft Systems Intl.