File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript and activex support