MS Office (Excel) Automation Across HTML Frames
Posted on 2004-11-01
I know how to automate Excel from an HTML
var oXL = new ActiveXObject("Excel.Application");
oXL.Visible = true;
what it does, is open an excel workbook and show it outside of the HTML page (just a simple standalone Excel window)
1) what is the code to open that ActiveXObject inside an HTML frame?
what I want to do, is open that exact dynamically created
Excel Object *inside another HTML frame* (let say left frame has a button with the above script , right frame should contain the Excel window)
2) What is the code to control an Existing XLS file that was loaded as a source of an HTML frame
I know that if I give the frame's src property the path to the excel object I can see it opened INSIDE the frame.
however, I dont know how to control it from the other frame
( I know to get as far as parent.frames.xlFrame. <- what to put after the frame to get the Excel object?)