private void GetSectionFormat(Section section, ReportDocument report, XmlWriter writer)
{
writer.WriteStartElement("SectionFormat");
writer.WriteAttributeString("CssClass", section.SectionFormat.CssClass);
writer.WriteAttributeString("EnableKeepTogether", section.SectionFormat.EnableKeepTogether.ToString());
writer.WriteAttributeString("EnableNewPageAfter", section.SectionFormat.EnableNewPageAfter.ToString());
writer.WriteAttributeString("EnableNewPageBefore", section.SectionFormat.EnableNewPageBefore.ToString());
writer.WriteAttributeString("EnablePrintAtBottomOfPage", section.SectionFormat.EnablePrintAtBottomOfPage.ToString());
writer.WriteAttributeString("EnableResetPageNumberAfter", section.SectionFormat.EnableResetPageNumberAfter.ToString());
writer.WriteAttributeString("EnableSuppress", section.SectionFormat.EnableSuppress.ToString());
writer.WriteAttributeString("EnableSuppressIfBlank", section.SectionFormat.EnableSuppressIfBlank.ToString());
writer.WriteAttributeString("EnableUnderlaySection", section.SectionFormat.EnableUnderlaySection.ToString());
CRReportDefModel.Section rdm_ro = GetRASRDMSectionObjectFromCRENGSectionObject(section.Name, report);
if (rdm_ro != null)
GetSectionAreaFormatConditionFormulas(rdm_ro, writer);
if ((ShowFormatTypes & FormatTypes.Color) == FormatTypes.Color)
GetColorFormat(section.SectionFormat.BackgroundColor, writer, "BackgroundColor");
writer.WriteEndElement();
}