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

    The SchedulePrintDocument component allows the developer to print the contents of a Schedule control. In this tutorial, we use a SchedulePrintDocument to provide the application with Print Preview capabilities.



    The steps followed to create this project were:



    1) Open Form1 in Design mode



    2) Drag a Schedule control from the Toolbox into the Form designer



    3) Drag a SchedulePrintDocument component from the Toolbox and drop it over Form1



    4) Select SchedulePrintDocument1 component in the Components tray and set the Schedule property equal to schedule1



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



    6) Set the Document property of PrintPreviewDialog1 equal to SchedulePrintDocument1



    7) Add a button and change its Text property to "Print Preview..."



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



    9) Run the project.

    Source Of Information : Janus v3.5 Help Files for VS 2008


0 comments:

Leave a Reply