Back to Devexpress

Lesson 7 - Insert Two Rows and Three Columns

windowsforms-96-controls-and-libraries-printing-exporting-getting-started-lesson-7-insert-two-rows-and-three-columns.md

latest1.5 KB
Original Source

Lesson 7 - Insert Two Rows and Three Columns

  • Aug 15, 2025
  • 3 minutes to read

The link created in this lesson generates a document that contains two rows and three columns, with an image brick added to the second row.

View Example: Get Started with Printing Library

To insert two 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 ( Lesson7 ) derived from the Lesson6 class defined in the previous lesson. The new class implements a new constructor with two parameters: one specifying a printing system, and one specifying an image to print within the report. Make sure to add an image to the project (called fish.bmp ).

  2. To add the image to the project’s resources, right-click the application title in the Solution Explorer and select Properties.

  3. 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 8 - Insert Three Rows and Three Columns