views:

9

answers:

0

I have to create some Infopath form from c# code. So I use xsd.exe to create c# objects and XmlSerializer to compose xml files.

Also I must define "mso-application" like "progid="InfoPath.Document" versionProgid="InfoPath.Document.3" (for sharepoint 2010) and "mso-infoPathSolution". I have problem with "mso-infoPathSolution" where I must define right "name" and "solutionVersion".

I can get right name of InfoPath form by next code:

FormsService service = SPFarm.Local.GetChild<FormsService>();
service.FormTemplates["..."].Name

but I can't find any solution for "solutionVersion" of Infopath form.

How I can get "solutionVersion" for Infopath form that was published on SharePoint?

related questions