I would like Create Dynamic ASP.NET Excel Workbooks using VB or javascript
I tried using vb in asp.net page
createObject("Excel.Application")
server.createObject("Excel.Application")
I got an exception error message Cannot create ActiveX component.
I used the following code in ASP.net page using javascript, still I get the same error.
var Excel, Book;
// Create the Excel application object.
Excel = new ActiveXObject("Excel.Application");
However, this code works in ASP pages.
Could you please suggest where I am going wrong.
Any help is much appreciated
Regards
Nalina