I checked out the ActiveX control called Meadroid. It seems that it only works with html files that are loaded into iframes and not actual documents. When I linked to my excel sheet it did not recognise it and all it gave me to print was a blank page (even though the excel appeared in iframe in the browser).
I have now given up with the idea of displaying the excel in an iframe. Instead I have created a button that when clicked will...
User Profile
Collapse
-
I am only going to be using IE - what sort of possible browser-specific solution is there?
By the way I tried to include a stylesheet within the iframe but setting the font size didn't change the output in any way either. I thought I would have to set the dimensions if it were possible of the "content" somehow because I am assuming that the iframe treats the excel sheet like it would an image and just displays the true size...Leave a comment:
-
When I check out Print Preview in Excel of the document, I can see that it is scaled down 54% to be printable on one page. Is their something equivalent that I can do to the document when it is loaded into the iframe?Leave a comment:
-
I'm confused - that is what I did - I set the font-size to 9 points...Leave a comment:
-
I tried this:
[HTML]<link rel="stylesheet " href="print.css " type="text/css" media="print" />
<div id="printDiv" name="printDiv" >
<iframe class="tborder" id="excelFrame " src="<%=fileNam e%>" width="90%" height="80%" frameborder="0" ></iframe>
</div>...Leave a comment:
-
By the way, here is all the code - obviously fileName is the address of the excel file on the local machine:
[HTML]<% String fileName = request.getPara meter("fileName "); %>
<script type='text/javascript'>
function printExcel(){
window.excelFra me.focus();
window.excelFra me.print();
}
</script>
<HTML>
<BODY>...Leave a comment:
-
I simply have an iframe called "excelFrame " and one button called Print. When the user clicks the button --> onClick="printE xcel()" -->
function printExcel(){
window.excelFra me.focus();
window.excelFra me.print();
}
The excel sheet prints but it prints the sheet our over 4 pages. If I print directly from the original file using excel, the sheet prints out...Leave a comment:
-
Yes - when the excel is not in the iframe it prints just the one page. When I print it in the iframe it prints the contents of the sheet over 4 pages.Leave a comment:
-
iframe and printing issues
Hi,
I have an excel spreadsheet that is displayed within an iframe.
I print the sheet displayed by using the function:
function printExcel(){
window.excelFra me.focus();
window.excelFra me.print();
}
This does the job BUT the sheet is printed out over 4 pages in a larger font than had I printed the page from excel itself. The original excel...
No activity results to display
Show More
Leave a comment: