|
To publish an Outlook 2000 calendar as a web
page automatically
Microsoft Outlook 2000 includes a feature for
publishing any calendar
folder as a web page through the user interface. This sample
code uses the same component -- Webpub.exel -- in a script that you
can run either from the command line with
Windows Scripting Host or from a
Windows scheduling program. The script includes a USER OPTIONS
section to make it easy to create multiple copies of the script,
each with different options to publish different calendar folders.
This code works only with Outlook 2000 because Webpub.exe is not
included as a component in later versions. An alternative for other
versions might be to automate one of the
Word
calendar printing templates.
Click here to download
the script (4kb, 6 Feb 01).
The WebPub.Create method supports these parameters:
|
sTitle |
Title displayed at the top of the page |
|
sGraphic |
Path to a graphic file to use for BACKGROUND' attribute |
|
bUseGraphic |
True=Use 'sGraphic' param
False=Use no background graphic |
|
dtStartDate |
Start of date range to publish |
|
dtEndDate |
End of date range to publish |
|
bDetails |
Publish appointment details |
|
bShowInBrowser |
Display in default browser after publishing |
|
sSiteName |
Local path to store published calendar |
|