Back to Devexpress

Lesson 8 - Insert Three Rows and Three Columns

windowsforms-97-controls-and-libraries-printing-exporting-getting-started-lesson-8-insert-three-rows-and-three-columns.md

latest1.4 KB
Original Source

Lesson 8 - Insert Three Rows and Three Columns

  • Aug 15, 2025
  • 3 minutes to read

The link created in this lesson generates a document that contains three rows and three columns. One more row is inserted to represent a detail header.

View Example: Get Started with Printing Library

To insert three rows and three columns into the content of a printing link, do the following.

  1. To create a new printing link, declare a new class ( Lesson8 ) derived from the Lesson7 class defined in the previous lesson. The new class overrides the CreateDetailHeader method to add headers to all columns. The text is vertically and horizontally centered within these headers.

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

Launch the application and view the result.

See Also

Lesson 9 - Create a Multi-Page Document