Edit null fields in a InfoPath form (Windows application)

J

Johny

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 a can't edit it in InfoPath.

I have this code:

this.t_ARQUEOTableAdapter.Fill(this.tArqueo.T_ARQUEO);
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();
tArqueo.WriteXml(stream1);
fcInfoPath.NewFromFormTemplate(myForm, stream1,
XmlFormOpenMode.Default);


Where fcInfoPath is a Microsoft.Office.InfoPath.FormControl

How to do that ?

Regards
Johny
 

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