Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using ActiveXObject to open excel within a Mac I/E session

Posted on 2004-04-30
5
Medium Priority
?
910 Views
Last Modified: 2012-08-14
I am presently using ActiveXobject("excel.application") to download data into a excel worksheet from a html page in a Window environment.  I need to make the same thing work in a Mac environment.  

the code is actually:

<SCRIPT LANGUAGE="JavaScript">
<!--  Hide from non-JavaScript enabled browsers ');
'function AutomateExcel()
{
var oXL = new ActiveXObject("Excel.Application");
oXL.Visible = true;
var oWB = oXL.Workbooks.Add();
var oSheet = oWB.ActiveSheet;
var oSheet = oWB.ActiveSheet;
blah, blah....

thanks!
0
Comment
Question by:cmarshall
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 10963515
You need no ActiveX to load the worksheet.
Send the worksheet to browser and browser will display the worksheet in Excel.


0
 
LVL 63

Expert Comment

by:Zvonko
ID: 10963529
Or if you create the worksheet on the fly, then send it as html <table> and prepend the data with correct Excel MIME type.
0
 
LVL 63

Accepted Solution

by:
Zvonko earned 1500 total points
ID: 10963537
Here an example from PAQ: http:Q_10226111.html

0
 

Author Comment

by:cmarshall
ID: 10980530
Can you describe the behavior of this on a Mac?  In my case, it will create a file, but not open the excel spreadsheet automatically.

TIA
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 10981595
I do not have access to a Mac.

Also next time think about the advantage of giving grade A ;-)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question