public XsnWrapper(string templateFilePath) { this.FolderPath = Utilities.UncabXsn(templateFilePath); this.XsnContents = Directory.GetFiles(this.FolderPath); AddOriginalFile(Path.Combine(FolderPath, TemplateFileName)); this.Manifest = new ManifestWrapper(System.IO.File.ReadAllText(Path.Combine(this.FolderPath, ManifestFileName))); }
public static DataConnectionList DataConnections(ClientContext context, string libraryUrl, string xsnUrl) { ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents); DataConnectionList dcList = new DataConnectionList(); dcList.DataConnections = manifest.GetAllDataConnectionInfo(); return(dcList); }
public static FormPropertyList FormName(ClientContext context, string libraryUrl, string xsnUrl) { ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents); FormPropertyList properties = new FormPropertyList(); properties.Add(manifest.GetInitialCaption()); properties.Add(manifest.GetId()); return(properties); }
public static FormPropertyList FormSecuritySettings(ClientContext context, string libraryUrl, string xsnUrl) { ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents); FormPropertyList propertyList = new FormPropertyList(); propertyList.Add(manifest.GetInitialCaption()); propertyList.Add(manifest.GetTrustSetting()); propertyList.Add(manifest.GetTrustLevel()); return(propertyList); }
public static FormPropertyList FormCompatibility(ClientContext context, string libraryUrl, string xsnUrl) { ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents); FormPropertyList properties = new FormPropertyList(); properties.Add(manifest.GetInitialCaption()); properties.Add(manifest.GetInfoPathVersion()); properties.Add(manifest.BrowserCompatible()); return(properties); }
public static Property ViewCount(ClientContext context, string libraryUrl, string xsnUrl) { ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents); return(manifest.GetViewCount()); }
public static Property FormVersion(ClientContext context, string libraryUrl, string xsnUrl) { ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents); return(manifest.GetSolutionVersion()); }