PrintingSystemBase.End() Method
Finishes a report’s generation.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v24.2.Core.dll
NuGet Package: DevExpress.Printing.Core
#Declaration
#Remarks
This method signals that report generation has finished. All bricks created after calling the PrintingSystemBase.Begin method and before calling the End method are included in the report.
No changes can be applied to a report after the End method has been called.
Note
The number of Printing
#Example
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.
printingSystem1.Begin();
// 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.
printingSystem1.End();
// Preview the report.
printingSystem1.PreviewFormEx.Show();
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the End() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.