# GrapeCity.ActiveReports.Document.SectionDocument

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_Document_SectionDocument" data-uid="GrapeCity.ActiveReports.Document.SectionDocument" class="text-break">SectionDocument Class
</h1>
  <div class="markdown level0 summary"><p>Represents a section document section in ActiveReports, encapsulating pages and their collection.
This class extends the generic document structure to provide specific functionalities
for handling pages within a section-based report document. It includes features such as
compatibility mode settings for rendering, font resolution for cross-platform rendering,
document content management, printer settings, print options, and event handling for
print progress, print abortion, and printing errors.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="../MESCIUS.ActiveReports.Core.Document/GrapeCity.ActiveReports.Core.Document.DocumentBase-1.html">DocumentBase</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Document.Section.Page.html">Page</a>&gt;</div>
    <div class="level2"><a class="xref" href="../MESCIUS.ActiveReports.Core.Document/GrapeCity.ActiveReports.Core.Document.GenericDocument-2.html">GenericDocument</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Document.Section.Page.html">Page</a>, <a class="xref" href="GrapeCity.ActiveReports.Document.Section.PagesCollection.html">PagesCollection</a>&gt;</div>
    <div class="level3"><span class="xref">SectionDocument</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="../MESCIUS.ActiveReports.Core.Document/GrapeCity.ActiveReports.Core.Document.IDocument-1.html">IDocument</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Document.Section.Page.html">Page</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Document.html">GrapeCity.ActiveReports.Document</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Document_SectionDocument_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(DocumentTypeConverter))]
public class SectionDocument : GenericDocument&lt;Page, PagesCollection&gt;, IDocument&lt;Page&gt;, IDisposable</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_Document_SectionDocument_examples"><strong>Examples</strong></h5>
  <pre><code class="lang-csharp">GrapeCity.ActiveReports.Document.SectionDocument document = new GrapeCity.ActiveReports.Document.SectionDocument("MyReport");
document.Load("Document.rdf");
document.Printer.PrinterName = "TheNetworkPrinterName";
document.Printer.Landscape = true;
try
{
   document.Printer.Print();
}
catch (Exception ex)
{
   Console.WriteLine($"Printing failed: {ex.Message}");
}</code></pre>

  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument__ctor" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.-ctor.html#GrapeCity_ActiveReports_Document_SectionDocument__ctor">SectionDocument()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.-ctor.html#GrapeCity_ActiveReports_Document_SectionDocument__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">SectionDocument(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Deserialization constructor. Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument__ctor_System_String_" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.#ctor(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.-ctor.html#GrapeCity_ActiveReports_Document_SectionDocument__ctor_System_String_">SectionDocument(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.html">SectionDocument</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_CacheToDisk" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.CacheToDisk">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.CacheToDisk.html#GrapeCity_ActiveReports_Document_SectionDocument_CacheToDisk">CacheToDisk</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether indicating whether a document should use memory cache exclusively or be able to cache pages on disk.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_CompatibilityMode" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.CompatibilityMode">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.CompatibilityMode.html#GrapeCity_ActiveReports_Document_SectionDocument_CompatibilityMode">CompatibilityMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the new cross-platform based rendering implementation or the legacy GDI/GDI+ rendering should be used by the document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_Content" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.Content">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.Content.html#GrapeCity_ActiveReports_Document_SectionDocument_Content">Content</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value representing the document content.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_DocumentVersion" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.DocumentVersion">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.DocumentVersion.html#GrapeCity_ActiveReports_Document_SectionDocument_DocumentVersion">DocumentVersion</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the document version.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_FontResolver" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.FontResolver">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.FontResolver.html#GrapeCity_ActiveReports_Document_SectionDocument_FontResolver">FontResolver</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value representing the implementation of the resolution of the font resources required to render a document in the <a class="xref" href="GrapeCity.ActiveReports.Document.CompatibilityModes.html#GrapeCity_ActiveReports_Document_CompatibilityModes_CrossPlatform">CrossPlatform</a> compatibility mode.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_ImageConverterService" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.ImageConverterService">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.ImageConverterService.html#GrapeCity_ActiveReports_Document_SectionDocument_ImageConverterService">ImageConverterService</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the image converter service.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_Name" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.Name">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.Name.html#GrapeCity_ActiveReports_Document_SectionDocument_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating the document name.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_PrintOptions" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.PrintOptions">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.PrintOptions.html#GrapeCity_ActiveReports_Document_SectionDocument_PrintOptions">PrintOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value representing the options for report printing.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_Printer" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.Printer">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.Printer.html#GrapeCity_ActiveReports_Document_SectionDocument_Printer">Printer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value reprsenting the printer properties for report printing.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_RenderingInformation" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.RenderingInformation">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.RenderingInformation.html#GrapeCity_ActiveReports_Document_SectionDocument_RenderingInformation">RenderingInformation</a>
        </td>
        <td class="markdown level1 summary"><p>Extra rendering information, which can allow to render RDF properly.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_TextLayoutService" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.TextLayoutService">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.TextLayoutService.html#GrapeCity_ActiveReports_Document_SectionDocument_TextLayoutService">TextLayoutService</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the text layout service.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_Load_System_IO_Stream_" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.Load(System.IO.Stream)">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.Load.html#GrapeCity_ActiveReports_Document_SectionDocument_Load_System_IO_Stream_">Load(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the document from the specified stream.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_Load_System_String_" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.Load(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.Load.html#GrapeCity_ActiveReports_Document_SectionDocument_Load_System_String_">Load(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the document from the specified RDF file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_OnNewPage_GrapeCity_ActiveReports_Document_Section_Page_" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.OnNewPage(GrapeCity.ActiveReports.Document.Section.Page)">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.OnNewPage.html#GrapeCity_ActiveReports_Document_SectionDocument_OnNewPage_GrapeCity_ActiveReports_Document_Section_Page_">OnNewPage(Page)</a>
        </td>
        <td class="markdown level1 summary"><p>Calls for a new page.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_ResetPrinter" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.ResetPrinter">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.ResetPrinter.html#GrapeCity_ActiveReports_Document_SectionDocument_ResetPrinter">ResetPrinter()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the printer properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_SetLineBreaking_GrapeCity_ActiveReports_Core_Document_Drawing_Gc_LineBreakingAlgorithm_" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.SetLineBreaking(GrapeCity.ActiveReports.Core.Document.Drawing.Gc.LineBreakingAlgorithm)">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.SetLineBreaking.html#GrapeCity_ActiveReports_Document_SectionDocument_SetLineBreaking_GrapeCity_ActiveReports_Core_Document_Drawing_Gc_LineBreakingAlgorithm_">SetLineBreaking(LineBreakingAlgorithm)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_PrintAborted" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.PrintAborted">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.PrintAborted.html">PrintAborted</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the printing of the document pages is canceled.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_PrintProgress" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.PrintProgress">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.PrintProgress.html">PrintProgress</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the document pages are printing.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Document_SectionDocument_PrintingThreadErrorEvent" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.PrintingThreadErrorEvent">
          <a class="xref" href="GrapeCity.ActiveReports.Document.SectionDocument.PrintingThreadErrorEvent.html">PrintingThreadErrorEvent</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the printing error occurs.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Document.Section.Document.Filters.FilteredDocumentFactory.ConvertToFilteredDocument.html#GrapeCity_ActiveReports_Document_Section_Document_Filters_FilteredDocumentFactory_ConvertToFilteredDocument_GrapeCity_ActiveReports_Document_SectionDocument_">FilteredDocumentFactory.ConvertToFilteredDocument(SectionDocument)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ApplyDefaults.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ApplyDefaults__1___0_">ObjectExtensions.ApplyDefaults&lt;TObject&gt;(TObject)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.SetValue.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_SetValue__1___0_System_ComponentModel_PropertyDescriptor_System_String_">ObjectExtensions.SetValue&lt;TObject&gt;(TObject, PropertyDescriptor, string)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ToNameValueCollection.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ToNameValueCollection_System_Object_">ObjectExtensions.ToNameValueCollection(object)</a>
  </div>

</div>
