[]
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.
[TypeConverter(typeof(DocumentTypeConverter))]
public class SectionDocument : GenericDocument<Page, PagesCollection>, IDocument<Page>, IDisposable
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}");
}
| Name | Description |
|---|---|
| SectionDocument() | Initializes a new instance of the SectionDocument class. |
| SectionDocument(SerializationInfo, StreamingContext) | Deserialization constructor. Initializes a new instance of the SectionDocument class. |
| SectionDocument(string) | Initializes a new instance of the SectionDocument class. |
| Name | Description |
|---|---|
| CacheToDisk | Gets or sets whether indicating whether a document should use memory cache exclusively or be able to cache pages on disk. |
| CompatibilityMode | 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. |
| Content | Gets or sets a value representing the document content. |
| DocumentVersion | Gets the document version. |
| FontResolver | Gets or sets a value representing the implementation of the resolution of the font resources required to render a document in the CrossPlatform compatibility mode. |
| ImageConverterService | Gets the image converter service. |
| Name | Gets or sets a value indicating the document name. |
| PrintOptions | Gets a value representing the options for report printing. |
| Printer | Gets a value reprsenting the printer properties for report printing. |
| RenderingInformation | Extra rendering information, which can allow to render RDF properly. |
| TextLayoutService | Gets the text layout service. |
| Name | Description |
|---|---|
| Load(Stream) | Loads the document from the specified stream. |
| Load(string) | Loads the document from the specified RDF file. |
| OnNewPage(Page) | Calls for a new page. |
| ResetPrinter() | Resets the printer properties. |
| SetLineBreaking(LineBreakingAlgorithm) | For internal use only. |
| Name | Description |
|---|---|
| PrintAborted | Occurs when the printing of the document pages is canceled. |
| PrintProgress | Occurs when the document pages are printing. |
| PrintingThreadErrorEvent | Occurs when the printing error occurs. |