Reports for WPF | ComponentOne
Getting Started with Reports for WPF / Generating Reports (C1Report vs. C1PrintDocument) / Deciding on Report Generation Method
In This Topic
    Deciding on Report Generation Method
    In This Topic

    Because two ways of generating reports are available (using the C1Report component vs. importing the report into a C1PrintDocument), you may ask, "Which method is preferable?" Our recommendations are as follows:

    • C1PrintDocument integration: when a report definition has been imported into a C1PrintDocument, the resulting document can be manipulated as any other C1PrintDocument. For example, user code can add content to the document body, modify document properties, and so on. Such changes will persist even when the document is refreshed.
    • Some problems existing in C1Report are solved by import; specifically, in C1Report side-by-side objects cannot be correctly split between pages, and borders are not rendered correctly on objects split between pages. Neither of these problems exists when a report is imported into C1PrintDocument.
    • Import is slightly more efficient both memory- and speed-wise.
    • Future enhancements: it is likely that some future enhancements will affect only import.
    See Also