public static void ProcessReport(ISCDReportClientDocument report, XmlWriter xmlw, string reportDoc = "ReportClientDocument") { xmlw.WriteStartElement(reportDoc); xmlw.WriteElementString("DisplayName", report.DisplayName); xmlw.WriteElementString("IsModified", report.IsModified.ToStringSafe()); xmlw.WriteElementString("IsOpen", report.IsOpen.ToStringSafe()); xmlw.WriteElementString("IsReadOnly", report.IsReadOnly.ToStringSafe()); xmlw.WriteElementString("LocaleID", report.LocaleID.ToStringSafe()); xmlw.WriteElementString("MajorVersion", report.MajorVersion.ToStringSafe()); xmlw.WriteElementString("MinorVersion", report.MinorVersion.ToStringSafe()); xmlw.WriteElementString("Path", report.Path); xmlw.WriteElementString("PreferredViewingLocaleID", report.PreferredViewingLocaleID.ToStringSafe()); xmlw.WriteElementString("ProductLocaleID", report.ProductLocaleID.ToStringSafe()); xmlw.WriteElementString("ReportAppServer", report.ReportAppServer); Controllers.Process(report.CustomFunctionController, xmlw); Controllers.Process(report.DatabaseController, xmlw); Controllers.Process(report.DataDefController, xmlw); Controllers.Process(report.PrintOutputController, xmlw); Controllers.Process(report.ReportDefController, xmlw); ReportDefModel.ProcessReportOptions(report.ReportOptions, xmlw); Controllers.Process(report.SubreportController, xmlw); DataDefModel.ProcessSummaryInfo(report.SummaryInfo, xmlw); xmlw.WriteEndElement(); }