• Using GridEXPrintDocument to Print the Control [Janus GridEX WinForms Control v3.5 for .NET]

    GridEXPrintDocument component allows the developer to print the contents of a GridEX control.



    We are going to use a GridEXPrintDocument to provide the application with Print and Print Preview capabilities.



    The steps required to create this project are:



    1) Open Form1 in Design mode



    2) Drag a GridEXPrintDocument component from the Toolbox and drop it over Form1



    3) Select GridEXPrintDocument1 component in the Components tray and set its GridEX property equal to GridEX1



    4) Drag a PrintPreviewDialog component from the Toolbox and drop it over Form1



    5) Set the Document property of PrintPreviewDialog1 equal to GridEXPrintDocument1



    6) Add a button and change its Text property to "Print Preview& "



    7) In the Click event of the button, call the ShowDialog method of the PrintPreviewDialog1 component.



    8) Run the project.


2 comments:

  1. Edgardo says:

    thanks, but know a way to print child tables in the same document?

Leave a Reply