• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript and activex support

 
vinay chand
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All,

I am trying write a .csv file through a web application. I use javascript and Internet explorer for the above.
I would like to know if i can perform the following.

1. Create an Activex object (considering there is no microsoft spreadsheet appln installed) and openoffice 2.0 is installed and working.
2. if above is possible, is it possible to create workbooks and write data into it (through api's) and launch the oo-calc (so that i can save the file later)

In short i am trying something like this,

var theSpreadsheet = new ActiveXObject("Excel.Application");
var theBook = theSpreadsheet.Workbooks.Open(tempstr)");
theSpreadsheet.visible=true;");

But i guess the above code works only in case of m$ Excel installed in the client m/c. i gave me the error .. Automation server cannot create object (given that i have enabled all activex security levels)

Any kind of help is very much welcome.

Regards
Vinay
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I remember correctly the Open Office site has ActiveX listed on the main page. Might want to look through the api.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic