ComponentOne Reports for WinForms Designer Edition: ComponentOne Reports for WinForms > Working with C1PrintDocument

Working with C1PrintDocument

The C1PrintDocument component allows you to create complex documents that can be printed, previewed, persisted in a disc file, or exported to a number of external formats including PDF (Portable Document Format) and RTF (Rich Text File).

C1PrintDocument provides a number of unique features, including:

      Consistent transparent hierarchical document structure.

      Easy to use and efficient styles.

      Documents that can be changed and re-rendered to accommodate the changes and/or different page settings.

      Documents' preview, printing, persisting, and export to external formats.

      Documents that are input forms (supported by the preview components).

      Complete tables support, including nested tables.

      Support for multi-style text, including inline images.

      True type fonts embedding.

      Hyperlinks.

      Auto-generated TOC.

      And more!

The default namespace used by C1PrintDocument is C1.C1Preview (the Windows Forms controls for previewing documents, uses the default namespace C1.Win.C1Preview).

The whole document is represented by the C1PrintDocument class, which inherits from Component.

The main parts of a C1PrintDocument are:

      Body

The actual content of the document – text, images and so on. The body represents the logical structure of the document (see also the page collection below).

      Pages

The collection of pages which were generated based on the content (body) and a particular page setup. Normally the page collection can be regenerated without loss of information (for example, for a different paper size).

      Style

The root style of the document. Styles control most of the visual properties of the document elements (such as fonts, colors, line styles and so on).

      Dictionary

Images used in multiple places in a document can be put in the dictionary and reused to improve performance and reduce memory footprint.

      EmbeddedFonts

The collection of embedded true type fonts used by the document.

      Tags

The collection of user defined tags that can be inserted in the document to be replaced by their values when the document is generated.

      DataSchema

Contains the data schema built-in document.


Render Objects

Styles

Tables

Anchors and Hyperlinks

Expressions, Scripts, Tags

Data Binding

Table of Contents

Word Index

Outline

Embedded Fonts

Dictionary

C1Report Definitions

Report Definition Language (RDL) Files


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.