Excel Automation in JScript.Net

  • Thread starter Thread starter Franky
  • Start date Start date
F

Franky

Hello,
I'm trying to migrate an Asp Webapp in Asp.Net. I'm just using the follwing
JScript.Net code:

var objExcel = new ActiveXObject("Excel.Application");
objExcel.Visible = false;
objExcel.DisplayAlerts = false;

On a WinXP Pro with Office 2003, it works. But on a Win2K Office XP, it
doesn't work, I receive the following error: "Old format or invalid type
library (System.Runtime.InteropServices)" for the "objExcel.DisplayAlerts"
line.

If possible, I would like to not use .Net codebehind and namespace (it would
be too much code to rewrite).
Thanks by advance.

Franky.
 
Hello Steve,
thanks for your quick response, but... the link doesn't work ! I can't
browse DNS www.aspnetpro.com.
Any idea ? Or do you have a copy of this article ?
Thanks a lot.

Franky.
 
Back
Top