whats new ¦  programming tips ¦  indy articles ¦  intraweb articles ¦  informations ¦  links ¦  interviews
 misc ¦  tutorials ¦  Add&Win Game

Tips (1541)

Database (90)
Files (137)
Forms (107)
Graphic (114)
IDE (21)
Indy (5)
Internet / LAN (130)
IntraWeb (0)
Math (76)
Misc (126)
Multimedia (45)
Objects/
ActiveX (51)

OpenTools API (3)
Printing (35)
Strings (83)
System (266)
VCL (242)

Top15

Tips sort by
component


Search Tip

Add new Tip

Add&Win Game

Advertising

41 Visitors Online


 
...save the Outlook calendar as a website?
Autor: Adrian Hämmerli
Homepage: http://www.sdnag.com
[ Print tip ]  

Tip Rating (10):  
     


{ In Outlook lässt sich ein Kalender als WebSeite speichern. Dazu benötig man
den "Web Publishing Wizard" download im Microsoft Download Center. }

{ In Outlook you can save the calendar as website. For this you need the
"Web Publishing Wizard" available at Microsoft Download Center. }


{ Original VB Script: By Sue Mosher, sue @slipstick.com, with input from Ken Slovak and others
for more Outlook samples, see http://www.slipstick.com/dev/code/index.htm }

{ .... }

uses ComObj;

{ .... }

procedure TForm1.Button1Click(Sender: TObject);
var 
  
Outlook, NameSpace, TopFolder, CalendarFolder, WebPub: OleVariant;
  sTitle: string;
begin
  
Outlook := CreateOleObject('Outlook.Application');
  WebPub  := CreateOleObject('WebPub.cWebPub');

  NameSpace := Outlook.GetNamespace('MAPI');
  TopFolder := NameSpace.Folders[1];
  CalendarFolder := TopFolder.Folders('Kalender');

  WebPub.Create('Kalender von AHA', '', False, '01.05.2003', '01.06.2003',
    True, True, 'C:\Temp');
  {
  WebPub.Create method 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=Ignore
                    '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
  }

  
WebPub  := Unassigned;
  Outlook := Unassigned;
end;

 

Rate this tip:

poor
very good


Copyright © by SwissDelphiCenter.ch
All trademarks are the sole property of their respective owners