This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript and activex support" Watch "Javascript and activex support" New topic

Javascript and activex support

vinay chand

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)");

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.

Eric Pascarello

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

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Javascript and activex support
Similar Threads
calling a ActiveX Object from JSP
A bit of confusion regarding the function in javascript
JavaScript ActiveX problem Through Server
Write file to client file system
calling (VB)activex object from JSP