![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 93
1998-2004 Gravitybox Software LLC
Chapter 9
Printing
Printing is the only reason some schedules are even created. Without this functionality a
schedule might be all but useless. GbSchedule provides functionality to send a
schedule to a printer or an HTML file. As discussed earlier, there are many different
display formats and any of these may be printed exactly as they appear on the screen.
GoPrint
The GoPrint method starts a print that creates a hard copy
of the schedule. This takes a number of parameters and will
send the current schedule to the printer. It is important to
remember that the Viewmode and other properties must be set to the desired values
before this method is invoked. The schedule will output the screen exactly as it appears
on the screen. The only control that the developer wields over the printing is the range
of data to be printed.
Table 9.1
GoPrint Parameters
StartDateRoom
This is the starting date or starting room, depending on the
value of ViewMode. This specifies the lower value of the
range of items to be printed.
EndDateRoom
This is the ending date or ending room, depending on the
value of ViewMode. This must be greater than or equal to
Start.
StartTimeRoom
This is the starting range value of time for the print. This
parameter is the starting room in the viewmodes with no
time at all.
EndTimeRoom
This is the ending range value of time for the print. This
parameter is the starting room in the viewmodes with no
time at all.
PrinterParameters
This object will allow for the setting of many properties of
the printer. It includes the properties: Copies, Orientation,
PaperBin, PaperSize, PrinterDeviceName, and
PrintQuality. Use the SchedulePrinters collection to select
a valid system printer.
The Start and End parameters depend on the ViewMode property value. If the value is
set to display in a view with no dates, these two parameters must be valid room indexes
or names, otherwise they must be valid dates. If dates are specified, they must be in the
range MinDate to MaxDate or an error occurs. Also, the starting date must be less than
or equal to the ending date. When providing room information, the room index or name
Quick Tip
You may print a schedule of any size
or complexity using the GoPrint
method.
|