User Profile

Collapse

Profile Sidebar

Collapse
ashindler
ashindler
Last Activity: Oct 6 '08, 08:08 AM
Joined: Sep 11 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ashindler
    replied to iframe and printing issues
    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...
    See more | Go to post

    Leave a comment:


  • ashindler
    replied to iframe and printing issues
    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...
    See more | Go to post

    Leave a comment:


  • ashindler
    replied to iframe and printing issues
    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?
    See more | Go to post

    Leave a comment:


  • ashindler
    replied to iframe and printing issues
    I'm confused - that is what I did - I set the font-size to 9 points...
    See more | Go to post

    Leave a comment:


  • ashindler
    replied to iframe and printing issues
    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>...
    See more | Go to post
    Last edited by acoder; Sep 15 '08, 12:12 PM. Reason: Added [code] tags

    Leave a comment:


  • ashindler
    replied to iframe and printing issues
    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>...
    See more | Go to post
    Last edited by acoder; Sep 15 '08, 11:05 AM. Reason: Added [code] tags

    Leave a comment:


  • ashindler
    replied to iframe and printing issues
    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...
    See more | Go to post

    Leave a comment:


  • ashindler
    replied to iframe and printing issues
    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.
    See more | Go to post

    Leave a comment:


  • ashindler
    started a topic iframe and printing issues

    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...
    See more | Go to post
No activity results to display
Show More
Working...