How Could I Code The Printing Of Only A Section Of A Web Page - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › How Could I Code The Printing Of Only A Section Of A Web Page (801 Views)
| How Could I Code The Printing Of Only A Section Of A Web Page by popin5(op): 4:46pm On Nov 19, 2009 |
i am doing a work using aspx/C# and another using php, and i want a situation only the main content on the page to be printed. do i create a frame for this content or a CSS? what is d coding (the default function/class to call if any) i could do for this task. Thankyou for anticipated kindness |
| Re: How Could I Code The Printing Of Only A Section Of A Web Page by sayhi2ay(m): 5:48pm On Nov 19, 2009 |
popin5:Be explicit, C#, php, CSS, frame, which do you want to use? what is the main content on your page ? where do you want it printed to ? are you developing an app or a website? arrrgh! |
| Re: How Could I Code The Printing Of Only A Section Of A Web Page by yawatide(f): 6:26pm On Nov 19, 2009 |
poster: I already answered this for you in the programming section. Do a search for it. Just in case: Go the print stylesheet route. No need using javascript as one of the poster had suggested as it makes the solution unnecessarily complex. good luck! |
| Re: How Could I Code The Printing Of Only A Section Of A Web Page by hostmot(f): 8:05am On Nov 24, 2009 |
Yeah! As yawa-ti-de as said, the stylesheet route rules! It really has nothing to do with the programming language you are using. You can just hide elements you don't want printed in your print.css and check formatting to look good on printout. The key is in testing. Olawunmi, Sales Rep., Hostmot (www.hostmot.com) |
THE SECRET CODE: The Master Key That Gives You Everything You Want On Internet • How To Make Google Index Your New Blog Post, Web Page Quickly. • Create Ajax Chat & Learn Web Page Data Xchange via Json Vs Xml • 2 • 3 • 4
Great Forum Here • Problems With Smf Messaging. • Webmaster Needed For A Job