C# ASP.NET Printing Puzzle!!
-
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
-
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
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 )
-
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 )
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