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

Gravitybox Schedule Primer
Page 206 
1998-2004 Gravitybox Software LLC
The " vStartDateRoom " and " vEndDateRoom "
parameters are the start and end dates or rooms. This
parameter will be rooms if ViewMode property is a
setting that excludes days, otherwise it is dates. An
error is raised if invalid data is specified.
The "PrinterDeviceName" parameter is the printer
name. This must be a valid printer installed on the
system. If the printer does not exist then an error is
raised.
The "lOrientation" parameter allows you to print Portrait
or Landscape. The constants for this are as follows:
VbPRORPortrait = 1
vbPRORLandscape = 2
HitTest
Function HitTest(X As Long, Y As Long)
As CScheduleEl
This function takes a set of coordinates and returns the
associated appointment under the coordinates. If there
is no appointment at this position, “Nothing” is returned.
ImportXML
Function ImportXML(oXMLParameters As
CXMLParameters) As Boolean
Although you will probably loop through the collections
and store the information in a database, there is an
alternative. The schedule has its own file format that
can be used instead of a database. If you are designing
a "light" program and do not wish to distribute a full-
blown database like MS-Access, you can use the
ImportXML and ExportXML methods to save
information without a database.
The parameter object allows you to control what will be
loaded from the file. There are 7 collections that can be
loaded with this method. The ScheduleItems collection
is always saved, which means there are 6 collections
that can be conditionally saved. 
The parameter object has the following properties:
Filename - This is the full path of the file to use from
which to load the data.
Overwrite - <NOT USED>
http://www.purepage.com