|
Simulation
The report is provided with a toolbar which can be used to
simulate the update of the monthly sheets interactively from within Excel;
perfect for testing and presentations. In practice, this
toolbar would not be provided in automated solutions. The toolbar has two
pushbuttons:
Reset: Press to clear the current sheet.
Update: Press to simulate daily data collection.
To simulate
the report, press Reset Then press Update to simulate a daily
update. Scheduler
To use this example in a 'real' environment, use
the workbook to ChemicalMaster.xls provided in the XLReporter
installation.
A schedule has been provided in the file
Chemical.sch
which can be viewed in the Schedule Designer. In practice, this would be used to automate the
report generation, automatically and in the background.
The schedule can be tested by using the Execute
feature of the Scheduler designer. Load the configuration into the
Schedule Designer, select the line to execute, right click and
select Execute.
The
configuration uses Time Based schedules.

Time Based Schedule
At the beginning of the year:
The master book ChemicalMaster is copied to Chem{YYYY}. Note
that {YYYY} is the four digit representation of the current
year.
At the beginning of each month:
The worksheet Chem{YYYY}.Report is copied to {MMM}. Note
that {MMM} is the 3 character representation of the current month
e.g., Oct for October
At the end of each day:
The scheduler performs two operations at the end of each day.
Set the column offset counter
The report uses the column offset counter CR019 which is set to a
value based on the current day of the month. This ensures that
the report data is placed in the correct cells of the report.
Update the worksheet
The worksheet Chem{YYYY}.{MMM} is updated with the daily data
from the process.
At the end of each month:
The scheduler performs two operations at the end of each month
Print the worksheet.
The completed report is printed, ready for signing and
distribution to the state.
Save the worksheet to a web page.
The worksheet Chem{YYYY}.{MMM} is saved to Chem{YYYY}{MMM}.htm and
is now accessible from the intranet and
internet.
|