Dynamic generating forms/controls

A

Andrej

Please, is there anybody who could tell me wheter it's even possible to
create whole form dynamicaly or controls from .NET?

thanks
 
S

S.Y.M. Wong-A-Ton

If you're referring to an InfoPath form (XML data) as opposed to an InfoPath
form template (the blueprint for a form), then yes. InfoPath forms are
nothing else but XML files and surely you can generate these using .NET code.
The only thing you would have to do is point each XML file to the right form
template to use and make sure you add the processing instruction to the XML
file so that it is recognized as an InfoPath form. Fields (=controls) on the
form just follow the schema defined for the form template.
 
S

S.Y.M. Wong-A-Ton

I've never tried it myself, but you could try extracting the form files,
study the structure, and try to recreate all the files that make up the XSN
package.
 
Top