Hi,
There is no way to create .xsn file Programatically. If you have any xsn file already created, then you can move that form to infopath2007. But if you don't have any xsn file. You need to create new xsn file.
-- Anuma Reddy http://www.GGKtech.com
"Krishna Kal" wrote:
[Quoted Text] > ED, > > Thank you very much. > > My questions should have have been this Initially, Anyways here is the > question, > > We are currently in the process of moving from custom winforms to Infopath > forms. > > For existing 200 forms we have a schema. Is it possible to create Info Path > *.xsn form programatically if we have schema, if there is any way could you > please let me know. > > Thanks, > Gopi > > > "Ed Thurber" wrote: > > > Krishna: > > > > I know you can create have infopath create a schema from an XML file. > > There are some caveats. > > The XML file does not contain the data type information so all elements > > are created as strings. > > InfoPath determines repeating nodes from the XML file. if a particular > > node is suppose to be repeating, but there is just a single instance of that > > node in the XML file, it will not be repeating in the schema, you will need > > to fix it after the schema is created. > > > > As for the XSD files, i think you will have to create the views first (just > > blank place holders) then go into the XSN file and replace the XSD's with > > yours (keep the filenames that InfoPath created). > > > > Saving the XSN as source files will aid in this. > > > > Hope this gets you started. > > > > Ed > > > > > > "Krishna Kal" <Krishna Kal[ at ]discussions.microsoft.com> wrote in message > > news:DDAF18B0-20BB-485B-A506-C2F8633A14C1[ at ]microsoft.com... > > > Hello, > > > > > > I am new to Infopath forms and have very less information on how forms are > > > created. From the basic tutorials on web I think if we have a schema we > > > can > > > create a Infopath and filling the same would create us a XML file. > > > > > > Now my situation is to the things in oppisite way. > > > > > > What I am trying to right now is to create Infopath forms from existing > > > XML > > > with data and XSD's ( which is quite opposite of creating xml after > > > creating > > > Forms based on schemas and filling up the forms to create XML ). > > > > > > I am trying to see if there is any way to do this. Could any one help me > > > in > > > doing this. > > > > > > > > > let me know if you need more information I can give you an example of xml > > > and xsd of what I have. > > > > > > Thanks for all your help > > > > > > > > >
|