was ist neu ¦  programmier tips ¦  indy artikel ¦  intraweb artikel ¦  informationen ¦  links ¦  interviews
 sonstiges ¦  tutorials ¦  Add&Win Gewinnspiel

Tips (1541)

Dateien (137)
Datenbanken (90)
Drucken (35)
Grafik (114)
IDE (21)
Indy (5)
Internet / LAN (130)
IntraWeb (0)
Mathematik (76)
Multimedia (45)
Oberfläche (107)
Objekte/
ActiveX (51)

OpenTools API (3)
Sonstiges (126)
Strings (83)
System (266)
VCL (242)

Tips sortiert nach
Komponente


Tip suchen

Tip hinzufügen

Add&Win Gewinnspiel

Werbung

48 Visitors Online


 
...ein Frontpage-Web veröffentlichen?
Autor: Andreas Rumsch
Homepage: http://www.ardesign.ch
[ Tip ausdrucken ]  

Tip Bewertung (2):  
     


uses comobj;

{....}

procedure TForm1.PublishTheWeb(dir, dest, un, pw: string);
{ dir:
    // location of the local web to publish
    // Ort des lokalen Webs, das veröffentlicht werden soll }

{ dest
    // destination URL, where the web to publish
    // URL, wo das Web veröffentlicht werden soll}
{ un
    // username
    // Benutzername }
{ pw
    // password
    // Kennwort }
const 
  
FpPublishNone = 0;
  FpPublishIncremental = 1;
  FpPublishAddToExistingWeb = 2;
  FpPublishCopySubwebs = 4;
var 
  
fp: OLEVariant;
  web: OLEVariant;
begin
  try
    
// create an instance of frontpage
    // eine Instanz von Frontpage erzeugen
    
fp := CreateOleObject('Frontpage.Application');

    // open the web to publish
    // das zu veröffentlichende Web öffnen
    
web := fp.Webs.Open(dir);

    // before the web can be published, you should open an Internet connection
    // using rasdial.exe
    // see Delphi-Tip "...establish a connection to the internet ?"
    // or you set your Internetoptions to connect automatically to the Internet

    // Bevor das Web veröffentlicht werden kann, sollte eine Internetverbindung
    // aufgebaut werden
    // siehe Delphi-Tip "...eine Internetverbindung aufbauen ?"
    // oder die Internetoptionen sind so gesetzt, dass eine Verbindung automatisch
    // aufgebaut wird

    { open the Internet-connection}

    // publish it
    // veröffentlichen
    
web.Publish(dest, FpPublishAddToExistingWeb, un, pw)
  except
    
ShowMessage('Can''t load FrontPage.')
  end;
end;


 

Bewerten Sie diesen Tipp:

dürftig
ausgezeichnet


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