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. General Programming
  3. C#
  4. C# ASP.NET Printing Puzzle!!

C# ASP.NET Printing Puzzle!!

Scheduled Pinned Locked Moved C#
csharpasp-nethelp
3 Posts 2 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.
  • M Offline
    M Offline
    Michael101
    wrote on last edited by
    #1

    Hi Everyone, I've got a ASP.NET C# website but I have an issues with the standard printing functionality that Internet Explorer offers you. If the person doesn't choose to print the webpage with the setting "To Fit" but leaves it set to 100% then the printer ends up chopping off some of the words at the end of some lines. I've decided to make my own printing page, (which is no problem) but the problem I do have is that I don't want to make a seperate printing page for all pages on my website. In whole, does anyone know a way of constructing one page that can possibly handle all the printing of the website. In other words when people press my custom print button on the page, it redirects them to my one page. I have the feeling I'm really bad at explaining this, and I have the feeling it's impossible. Hope there is something though! Cheers, Michael

    C 1 Reply Last reply
    0
    • M Michael101

      Hi Everyone, I've got a ASP.NET C# website but I have an issues with the standard printing functionality that Internet Explorer offers you. If the person doesn't choose to print the webpage with the setting "To Fit" but leaves it set to 100% then the printer ends up chopping off some of the words at the end of some lines. I've decided to make my own printing page, (which is no problem) but the problem I do have is that I don't want to make a seperate printing page for all pages on my website. In whole, does anyone know a way of constructing one page that can possibly handle all the printing of the website. In other words when people press my custom print button on the page, it redirects them to my one page. I have the feeling I'm really bad at explaining this, and I have the feeling it's impossible. Hope there is something though! Cheers, Michael

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You could perhaps create a master page that defines the printing format ? If you can do that, then you can change the master page programatically, I think. Make all your pages derive from a new base class, which is able to change the master page to the one that formats the page for printing. This is all off the top of my head, it may not work....

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      M 1 Reply Last reply
      0
      • C Christian Graus

        You could perhaps create a master page that defines the printing format ? If you can do that, then you can change the master page programatically, I think. Make all your pages derive from a new base class, which is able to change the master page to the one that formats the page for printing. This is all off the top of my head, it may not work....

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        M Offline
        M Offline
        Michael101
        wrote on last edited by
        #3

        Na Na Na, thanks for the suggestion. It certainly makes sense to me and I'll look into it. I think this will be tricky either way but I'll give it a shot and if you want let you know the solution when I get there! Thanks for your help! Michael

        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