1 reply
by jay eckles
The only thing I can think of is to open a new window, saving the handle to that window in a variable. The URL of that window should be the excel sheet. Immediately after the window is opened, you call print() on that window with the handle you saved. Here's a little Javascript to get you started.
excelwindow = window.open( "http://server/book.xls", ... ) ;
excelwindow.print() ;
I don't know if this will work; I haven't tested it, but it's about the only option you have. The other thing I might try is opening the spreadsheet in a frame and calling window.print() from the frame that does not contain the spreadsheet. That should print the entire webpage including the spreadsheet.
Good luck.
Jay Eckles
www.jayeckles.com
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending