从Servers页中拖一个PowerPointApplication,然后再uses中加上office2000,写下列代码:procedure TForm1.Button4Click(Sender: TObject);
begin
  PowerPointApplication1.Connect;
  PowerPointApplication1.Visible := msoTrue;
end;

解决方案 »

  1.   

    那么请教,怎么调用WORD呢?那里有OFFICE2000,WORD2000 单元的参考呢?谢谢
      

  2.   

    WinEXec()
    Uses Shellapi
    ShellExcute(PChar('winword.exe'),nil,nil,sw_Normal,0);
      

  3.   

    应该是shellexecute,可是我试了提示这句有错误:
    [Error] Unit1.pas(30): Incompatible types: 'HWND' and 'PChar'
    [Error] Unit1.pas(30): Incompatible types: 'Integer' and 'PChar'
    到底要怎么做呢?用WORD application 控件怎么做呢?