|
Schedule.NET Printing
After creating a schedule there are many times when you will wish to print a hard
copy. The GbSchedule.NET component has this functionality built-in. It will print
the schedule as you set it on the screen across multiple pages if necessary. There
is even a print preview to view the look of the print before it occurs.
Printing is very easy. There are only two methods: GoPrint and GoPreview. Each can
take a settings object to define the printable area. If either is called with no
parameter then the entire schedule is printed or previewed as defined by the properties
MinDate, MaxDate, StartTime, and DayLength. Also depending on the viewmode Providers
or Rooms might be shown as well.
To print an area of the schedule just setup the settings object and send it to the
GoPrint method as demonstrated in the following code snippet.
|
Dim settings As New PrintDialogSettings(#1/1/2004#, #8:00:00 AM#, _ #1/5/2004#,
#6:00:00 PM#)Schedule1.GoPrint(settings)
|
Print Setup
This event is raised before any printing starts and allows you to define a custom
header and footer height for all pages. It you do not wish to have a header or footer
then you can set the heights of these two sections to zero with the event parameter.
|
|