private static void Process(SubreportClientDocument scd, XmlWriter xmlw) { xmlw.WriteElementString("EnableOnDemand", scd.EnableOnDemand.ToStringSafe()); xmlw.WriteElementString("EnableReimport", scd.EnableReimport.ToStringSafe()); xmlw.WriteElementString("IsImported", scd.IsImported.ToStringSafe()); xmlw.WriteElementString("Name", scd.Name); xmlw.WriteElementString("SubreportLocation", scd.SubreportLocation); Process(scd.DatabaseController, xmlw); Process(scd.DataDefController, xmlw); Process(scd.ReportDefController, xmlw); ReportDefModel.ProcessReportOptions(scd.ReportOptions, xmlw); }
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(); }