This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Javascript and activex support Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript and activex support" Watch "Javascript and activex support" New topic
Author

Javascript and activex support

vinay chand
Greenhorn

Joined: Jan 02, 2008
Posts: 1
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
If I remember correctly the Open Office site has ActiveX listed on the main page. Might want to look through the api.

Eric
 
jQuery in Action, 2nd edition
 
subject: Javascript and activex support