Excel Automation in JScript.Net

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.
 
F

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.
 
S

Steve C. Orr [MVP, MCSD]

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top