Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Printing Articles Problem

Printing Articles Problem

Scheduled Pinned Locked Moved Site Bugs / Suggestions
wpfhelpcsharphtmlcss
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aalex675
    wrote on last edited by
    #1

    I printed out an article to read over the weekend and when reading it noticed that all code blocks longer than a page are truncated at the end of the page. This is the same issue that was discussed in this post[^], but I am not using Adobe to save the articles as pdf. I have a Dell Laser Printer here, but I can't imagine that the printer would affect the way the page looks in the print preview so long as the page size is the same. The article I was trying to print is WPF : If Carlsberg did MVVM Frameworks Part 2 of n[^]. The problem can be seen on Page 6 where the code snippet is stopped at the end of the page in print preview. Looking at the HTML it appears to be a problem where the PRE tag contents are not wrapped to a new page and I found a blog post here[^] that has a section on making PRE tags print across pages if that helps at all. Thanks

    L C 2 Replies Last reply
    0
    • A aalex675

      I printed out an article to read over the weekend and when reading it noticed that all code blocks longer than a page are truncated at the end of the page. This is the same issue that was discussed in this post[^], but I am not using Adobe to save the articles as pdf. I have a Dell Laser Printer here, but I can't imagine that the printer would affect the way the page looks in the print preview so long as the page size is the same. The article I was trying to print is WPF : If Carlsberg did MVVM Frameworks Part 2 of n[^]. The problem can be seen on Page 6 where the code snippet is stopped at the end of the page in print preview. Looking at the HTML it appears to be a problem where the PRE tag contents are not wrapped to a new page and I found a blog post here[^] that has a section on making PRE tags print across pages if that helps at all. Thanks

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Waw. Quite a post. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
      [The QA section does it automatically now, I hope we soon get it on regular forums as well]


      1 Reply Last reply
      0
      • A aalex675

        I printed out an article to read over the weekend and when reading it noticed that all code blocks longer than a page are truncated at the end of the page. This is the same issue that was discussed in this post[^], but I am not using Adobe to save the articles as pdf. I have a Dell Laser Printer here, but I can't imagine that the printer would affect the way the page looks in the print preview so long as the page size is the same. The article I was trying to print is WPF : If Carlsberg did MVVM Frameworks Part 2 of n[^]. The problem can be seen on Page 6 where the code snippet is stopped at the end of the page in print preview. Looking at the HTML it appears to be a problem where the PRE tag contents are not wrapped to a new page and I found a blog post here[^] that has a section on making PRE tags print across pages if that helps at all. Thanks

        C Offline
        C Offline
        Chris Maunder
        wrote on last edited by
        #3

        Excellent suggestion. It will be in place today.

        cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups