Navigation bar
  Home Print document Start Previous page
 98 of 234 
Next page End  

Gravitybox Schedule Primer
Page 96 
1998-2004 Gravitybox Software LLC
Item
Given a SchedulePrinter object's index or name, this method will return
a SchedulePrinter object.
Each SchedulePrinter object has just one property. This is its DeviceName property.
This property is used as a parameter to the GoPrint method, to define a valid system
printer.
If you wished to print a particular part of a schedule, you could do so from code. You
must first setup the PrinterParameter object. Most of the properties are defaulted to the
most common values. However for completeness I have included some of the settings
here.
Dim oPrinterParameters As CPrinterParameter
  Set oPrinterParameters = New CPrinterParameter
  oPrinterParameters.PrinterDeviceName = Printer.DeviceName
  oPrinterParameters.Orientation = 1
  oPrinterParameters.Copies = 1
  Set oPrinterParameters = Nothing
Afterwards you may perform the actual printing. In this example, I assume that you wish
to print the schedule from August 1 through the 31 of 2002. I also assume that you wish
to print from 8 AM to 6 PM. These parameters are valid if the schedule is displaying
dates and times. If the schedule is displaying rooms and times then the first two
parameters should be valid room names or indexes.
Call oChild.Schedule1.GoPrint(#8/1/2002#, #8/31/2002#, #8:00:00
AM#, #6:00:00 PM#, oPrinterParameters)
http://www.purepage.com