如题?

解决方案 »

  1.   

    打开CHM文件shellexecute(handle,'open','.\help.chm',nil,nil,SW_SHOWMAXIMIZED);
      

  2.   

    1.打开chm
    uses shellapi
    ShellExecute(Handle,Pchar('Open') ,Pchar('C:\a.chm'),'','',SW_SHOWNORMAL);
    2.打开execl
    var
      ex1:variant;
    begin
      ex1:=createoleobject('excel.Application');
      ex1..visible:=true;
      ex1..Workbooks.Open('d:\book2.xls');
      ex1..ActiveWindow.WindowState:=2;//最大化
    end;
      

  3.   

    uses shellapi
    ShellExecute(Handle,Pchar('Open') ,Pchar('C:\a.chm'),'','',SW_SHOWNORMAL);
    2.打开execl
    var
      ex1:variant;
    begin
      ex1:=createoleobject('excel.Application');
      ex1.visible:=true;
      ex1.Workbooks.Open('d:\book2.xls');
      ex1.ActiveWindow.WindowState:=2;//最大化
    end;
      

  4.   

    谢谢各位的帮助
    运行ex1:=createoleobject('excel.Application');不让编译呀