File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 15385
If I remember correctly the Open Office site has ActiveX listed on the main page. Might want to look through the api.

subject: Javascript and activex support
It's not a secret anymore!