Outlook 2003 Calendar save as OLE Automation

M

Manfred

Hi

I need to automate the procedure
Calendar->save as Web Page on a vb script or in a .net application.

To activate the Calendar I choose the Application.Folders part and
than I can display the selected Calendar Inspector. But how do I
activate the File->Save as Web Page Menu?

Thanks for your suggestions
 
S

Sue Mosher [MVP-Outlook]

You can execute any menu command with the CommandBars collection (see
http://www.outlookcode.com/d/tips/commandbarfun.htm), but that won't do you
much good in this case, unless you're inclined toward a SendKeys kludge,
because you'd still have to make selections on the resulting dialog.

A better solution would be to iterate the folder and build exactly the web
page you want to see, using a table for the main portion of the display. You
might want to take a look at the Word templates listed at
http://www.slipstick.com/addins/calendar/print.htm . They use VBA code, but
the basic techniques are the same in any language.
 
Top