在webbrowser1打开一个EXCEL,怎样能用ExcelApp.WorkBooks.Open()打开
请教,各位高手

解决方案 »

  1.   

    webbrowser1.Navigate('文件路径');
    IE会自动通过OLE调用Excel打开
      

  2.   

    再重新解释一下,是已经用webbrowser1.Navigate(IP地址);打开了一个EXCEL文件,现在想要在EXCEL应用软件中打开,有劳各位高手指教了!!!!!!!!
      

  3.   

    用OLE去控制EXCEL。一般步骤是先Connect,然后再调用Open方法。
      

  4.   

    TO :SQLDebug_Fan
    可不可以说具体点,connect这个步骤应该怎么完成,谢了
      

  5.   

    示例代码:unit Unit1;interfaceuses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs, StdCtrls, OleServer, ExcelXP;type
      TForm1 = class(TForm)
        exclplctn1: TExcelApplication;
        btn1: TButton;
        procedure btn1Click(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.dfm}procedure TForm1.btn1Click(Sender: TObject);
    begin
      exclplctn1.ConnectKind := ckRunningOrNew;
      exclplctn1.Connect;
      exclplctn1.Workbooks.Open()
    end;end.
      

  6.   

    TO :SQLDebug_Fanexclplctn1.Workbooks.Open()
    括号内填什么内容才能打开webbrowser1已经打开的内容。