A newer version of this page is available. Switch to the current version.

PrintingSystemBase.Begin() Method

Indicates that report generation has started.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v18.2.Core.dll


public void Begin()
Public Sub Begin


This method signals that report generation has started. All bricks created after calling this method are not included in the report until the PrintingSystemBase.End method is called.


The number of PrintingSystemBase.End method calls must equal the number of Begin method calls.


The following code demonstrates how to create a VisualBrick and specify its dimensions and border settings, using the BrickGraphics.DrawRect method:

using DevExpress.XtraPrinting;
// ...

    VisualBrick visBrick;
    BrickGraphics brickGraph = printingSystem1.Graph;

    // Start the report generation.

    // Create a rectangle.
    RectangleF rect = new RectangleF(new PointF(0, 0), new SizeF(150, 50));

    // Specify a page area.
    brickGraph.Modifier = BrickModifier.Detail;

    // Add a brick to the report.
    visBrick = brickGraph.DrawRect(rect, BorderSide.All, Color.Yellow, Color.Blue);

    // Finish the report generation.

    // Preview the report.
See Also