Back to Devexpress

Lesson 5 - Insert Two Bricks

windowsforms-94-controls-and-libraries-printing-exporting-getting-started-lesson-5-insert-two-bricks.md

latest1.2 KB
Original Source

Lesson 5 - Insert Two Bricks

  • Aug 15, 2025
  • 2 minutes to read

The link created in this lesson generates a document that contains two different bricks.

View Example: Get Started with Printing Library

To add a brick to a document created via a printing link, do the following.

  1. To create a new printing link, declare a new class ( Lesson5 ) derived from the Lesson4 class defined in the previous lesson. The new class overrides the CreateDetail method, and provides a virtual CreateRow method that inserts a row consisting of one brick under the previous brick.

  2. Next, modify the main form’s Load event handler to pass the Printing System of the Document Viewer to the new link.

Launch the application and view the result.

See Also

Lesson 6 - Insert Two Rows