Back to Devexpress

Lesson 9 - Create a Multi-Page Document

windowsforms-98-controls-and-libraries-printing-exporting-getting-started-lesson-9-create-a-multi-page-document.md

latest1.1 KB
Original Source

Lesson 9 - Create a Multi-Page Document

  • Aug 15, 2025
  • 4 minutes to read

The link created in this lesson generates a multi-page document that contains a detail header, and displays the current date and page numbers on page margins.

View Example: Get Started with Printing Library

To create a multi-page document, do the following.

  1. To create a new printing link, declare a new class ( Lesson9 ) derived from the Lesson8 class defined in the previous lesson. The new class overrides the CreateMarginalHeader method to add two page info bricks.

  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.