请问Delphi写的ActiveX怎样与ASP.NET程序交互,我看到好象只能针对ASP写,针对ASP.NET该怎么写着
希望各位大侠能够提供例子谢谢,不够可以再加分

解决方案 »

  1.   

    应该更简单不过偶不知道
    也许你该去.Net板块看看。
      

  2.   

    在开发环境中将ActiveX引入,就可以调用;如果是客户端就用JavaScript。
    相关的例子:http://dev.csdn.net/user/qiume
      

  3.   

    <javascript>
    function button1_onclick() {
    ExcelApp = new ActiveXObject("Excel.Application");
    ExcelSheet = new ActiveXObject("Excel.Sheet"); 
    ExcelSheet.Application.Visible = true;
    // Place some text in the first cell of the sheet.
    ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1";
    // Save the sheet.
    ExcelSheet.SaveAs("C:\\TEST.XLS");
    // Close Excel with the Quit method on the Application object.
    ExcelSheet.Application.Quit();
    }
    </javascript>