将网页内容保存在数据库中,如何将数据库内容输出到FrontPage中进行编辑,编辑后再保存回数据库中。

解决方案 »

  1.   

    Procedure TForm1.Button1Click(Sender:TObject);
    //定义frontpage的路径
    const
      fpgpath='"E:\Program Files\Microsoft Office\Office\FRONTPG.EXE"';
    Var
       htmlFile:TextFile;
    begin
    Assignfile(htmlFile,'c:\test.htm');
    rewrite(htmlFile);
    writeln(htmlFile,adotable1.fieldbyname('html').asstring);
    closefile(htmlFile);
    ShellExecute(handle,'open',PChar(fpgpath),'c:\test.htm',nil,sw_show);
    end;
      

  2.   

    楼上ShellExecute在delphi中怎么声明?