470,821 Members | 2,041 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,821 developers. It's quick & easy.

Edit null fields in a InfoPath form (Windows application)

I have a dataset that has DBNull in certain columns, now when I write out this one to XML, I only get the columns as elements that do have data in it. However I do need also the empty colums as empty elements in the XML to can edit the field in InfoPath.

If the field isn't present in XML I can't edit it in InfoPath.

I have this code:

this.t_ARQUEOTableAdapter.Fill(this.tArqueo.T_ARQU EO);
string myForm = @"C:\Documents and Settings\Johny\My documents\Visual Studio 2005\Projects\Arqueo\IP_tArqueo\manifest.xsf";
System.IO.MemoryStream stream1 = new System.IO.MemoryStream();
fcInfoPath.NewFromFormTemplate(myForm, stream1, XmlFormOpenMode.Default);

Where fcInfoPath is a Microsoft.Office.InfoPath.FormControl

How to do that ?

Jun 19 '06 #1
0 1570

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Tamir Khason | last post: by
reply views Thread by Cosimo Galasso | last post: by
3 posts views Thread by Jeff Richardson | last post: by
2 posts views Thread by Vish | last post: by
reply views Thread by zeng.hui.stephen | last post: by
reply views Thread by =?Utf-8?B?Q2hhcmxlcyBTaW1wc29u?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.