Generates the current document, using the RefreshCalculatedValues refresh mode.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public bool Generate()
Visual Basic
Public Function Generate As Boolean

Return Value

true if no warnings occurred during document generation, false if there were warnings (in that case, the Warnings property on the current document contains the warnings that were issued).

Examples

The following code uses the Generate()()()() method to generate the document:

Copy CodeVisual Basic
Me.C1PrintDocument1.Body.Children.Add(New C1.C1Preview.RenderText("Hello, World!"))
Me.C1PrintDocument1.Generate()
Copy CodeC#
this.c1PrintDocument1.Body.Children.Add(new C1.C1Preview.RenderText("Hello, World!"));
this.c1PrintDocument1.Generate();

See Also