![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 97
1998-2004 Gravitybox Software LLC
Chapter 10
Displaying Schedules on the Web
There are times that you may need to display your schedule on the web. You might
create schedules that effect many people and you need a way to distribute this
information without the GbSchedule ActiveX component. You can perform this by using
the schedules web publishing functionality.
Web Schedules Defined
A web schedule is defined as a schedule displayed in a
browser that does not need the GbSchedule component.
This is very nice for wide distribution of published
schedules. The browser does not need to load any ActiveX. This ensures that the
schedule may be viewed in any browser. In other words they are browser-independent.
The schedule is actually generated into standard HTML. It is nothing more than a big
table. This makes it convenient for distribution, with a caveat: all schedules are read-
only. Also a schedule cannot be generated if there are conflicts on the schedule. These
are the two limitations on web schedule generation at this time. There are also different
publishing options. A schedule may be published on one page or into frames. The frame
publishing allows for the custom header and footer to be visible at all times. If a large
schedule is created on a single page then the header and footer are at the far left of the
screen. This guarantees that is visible when first viewed; however if the schedule is
scrolled they disappear of course. A web publish is accomplished with a single function
call to ExportHTML.
ExportHTML
In addition to sending a schedule to a printer, the schedule may also be sent to an
HTML file. There are times when a schedule needs to be published to an HTML page,
so that users may view it. A schedule can be published every day (hour, week, month,
etc
), so users or customers may view it. Keep in mind that this will be a read-only
schedule. There is no way for a user to modify this HTML page.
The actual export is easy to use and allows for the addition of custom HTML to create a
complete page, if necessary. The ExportHTML method may be used to perform this
process. The method is called with a parameter object of type CHTMLParameters. The
properties may be set to build the page as desired.
Table 10.1
GoExport Parameter Object
FileName
This is the file to which is being written.
Overwrite
This property determines if this file is overwritten, if it already
Quick Tip
You may export some schedule
types to a web page by using the
ExportHTML method.
|