Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Firefox only prints one page

    Hi Everyone,
    I have a very annoying bug with Firefox on a site I'm currently working on. When I go to print a page, it only prints the first page. This only occurs in Firefox, and there is no issue printing out in Safari, Chrome etc.

    The site is a Drupal 5 site and you can view the problem page at the following link http://aangel.dyndns.org:8888/portfolio

    This page does not use Tables or Frames.

    So far I have tried all the fixes I'm aware off in the print.css file....

    - Unfloating elements
    - Setting overflow to visible for all elements
    - All elements positions are relative not absolute
    - Body does not have a height:100% property
    - The HTML code for the page is valid.
    - I have also waved a dead chicken in front of the screen to no avail :P

    The print.css file is as follows:

    Code:
    /* underline all links */
      a:link, a:visited
      {
        text-decoration: underline !important;
      }
    
      /* Don't underline header */
      #site-name a:link,
      #site-name a:visited
      {
        text-decoration: none !important;
      }
    
    /* CSS2 selector to add visible href after links
      #content a:link:after,
      #content a:visited:after
      {
        content: " (" attr(href) ") ";
        font-size: 0.8em;
        font-weight: normal;
      }
    */
    
    /* Un-float the content */
      #content,
      #content-inner
      {
        float: none;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
      }
    
    /* Turn off any background colors or images */
      body,
      #page, #page-inner,
      #main, #main-inner,
      #content, #content-inner
      {
        color: #000;
        background-color: transparent !important;
        background-image: none !important;
        overflow: visible !important;
      }
    
    /* Hide sidebars and nav elements */
      #skip-to-nav, #navbar, #sidebar-left, #sidebar-right, #footer,
      .breadcrumb, div.tabs, .links, .taxonomy,
      .book-navigation, .forum-topic-navigation, .pager, .feed-icons
      {
        visibility: hidden;
        display: none;
      }
      
    /* Corrections so that firefox prints correctly */
    /* Changed overflow's to 'visible' */
    .section-leadership .view-content-leadership
    {
      overflow: visible;
      height: 1%;
    }
    .section-news .view-content-portfolio
    {
      overflow: visible;
      height: 1%;
    }
    #navbar
    {
      overflow: visible; /* May need to be removed if using a dynamic drop-down menu */
    }
    
    .front .panel-flexible .panel-row-2 .panel-col-1 ul li img
    {
      float:none !important;
    }
    
    img.imagefield-field_snippet_image,
    .front .panel-flexible .panel-row-2 .panel-col-2 img
    {
      float:none !important;
    }
    I'm running MAC OS X 10.6.4 and Firefox 3.6.6

    I am at something of a loss, any help you could give would be appreciated.
    Last edited by greenkiwi1589; 07-08-2010 at 02:20 AM.

  • #2
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    836
    Thanks
    10
    Thanked 79 Times in 77 Posts
    Strange. Get 8 CSS errors for that page. HTML did pass.

    Going to File>Print Preview Firefox shows me 4 pages. Didn't try to print them.
    ☠ ☠RON☠ ☠

  • #3
    New to the CF scene
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Major Payne,
    Thanks kindly for the reply. I only get 4 CSS errors when validating this, and looking at them, none appear to be related to the printing error. They look like an attempt at setting a CSS3 property...text shadow. (I've come to the site to do some bug fixes, and it has been developed previously by someone else)

    If you try to print the pages (or just print to PDF) it does just print one page under Firefox 3.6.6. I had fixed the error in a previous version, 3.6.3, but following an upgrade to the latest version it went back to printing just one page.

    If you do manage to get more than one page out, I suspect your using an older version of Firefox.

    Any further pointers you could give would be greatly appreciated.

    Thanks very much

  • #4
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    836
    Thanks
    10
    Thanked 79 Times in 77 Posts
    Does Print Preview in Firefox 3.6.6 show only one or four pages?

    I am using an older version (3.0.19) as the later versions seem to be giving lots of people problems. I refuse to install latest versions when all my add-ons get disabled because they are no longer compatible.

    You may have hit on the problem about the browser being the problem. I do not have printer set up as I am moving soon. The file is saved as an .xps file, but haven't gotten a M$ Viewer for that format to see if I have all your pages.
    ☠ ☠RON☠ ☠

  • #5
    New to the CF scene
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks again for your reply Major Payne.
    When I print preview in Firefox 3.6.6 it gives me just one page.
    As mentioned in an earlier post, I did fix it for versions of Firefox up until 3.6.3, as soon as I upgraded though the problem rematerialised.

    It's possible I have hit upon an error in the browser that just isn't going to be resolved by editing the print CSS files, which which case it's going to be a huge pain for a lot of people - it has been going on since 2001/2002 I believe - I would have thought mozilla would have solved this problem by now.

  • #6
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    836
    Thanks
    10
    Thanked 79 Times in 77 Posts
    Maybe see "Does not print multiple pages" at Problems printing web pages. This seem relevant:

    Bug 192129 – Only one (1) page in print preview

    I believe it is a browser bug that has come back to haunt you. As long as FF only shows 1 page in Print View, that is the only page that gets printed. My FF shows 4-pages, so it seems they had the bug fixed at one time. :P
    Last edited by Major Payne; 07-09-2010 at 06:23 PM.
    ☠ ☠RON☠ ☠


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •