I have a product listview from where if a user click on ‘Print Product’ for any particular product it takes product ID to the controller and find out that product by ID and return their details to View form which is doing fine now but in View I don’t need to display Header and Footer graphics/values as I design my own View which is going to Print on printer.
Any Idea how to avoid not to display Header and Footer details on Printing Page.
Maybe there is another way to handle this simple task as me learning Yii framework.
Note that renderPartial won’t include any headers or javascript, meaning any graphical Javascript code won’t be run (no Cufon, for example). The ‘correct’ way is probably to use the print-specific CSS to hide the bits of the page you don’t like when printing, but YMMV.
Hi Lilt, thanks for your comments as I wasn’t know about that as well but my printing form doesn’t have any such Graphicas or JavaScript to load on printing page as got few CSS work which I already defined on that page.