Printer Friendly View and Creating .pdf - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Printer Friendly View and Creating .pdf (/showthread.php?tid=24428) |
Printer Friendly View and Creating .pdf - El Forum - 11-09-2009 [eluser]Fielder[/eluser] I've got my website generating several reports and tabulating data, some with a couple of rows of data, others with hundreds of rows of data. I want to do 2 things, 1) add a link in the results view to allow the user to print a "printer friendly" version (from a new window) of the results and 2) add a link in the results view to allow the user to create a .pdf of the results. Any suggestions for either? Right now, the results view is loaded like this Code: $this->load->view('include/header', $data); Simplest to me seems to be to just load the 'results' view in a new window, but then none of the header and stylesheets are included to format the tabulated results. Perhaps there is a helper or plugin for CI for this already? Any recommendations on printer stylesheets to use for good practice? Printer Friendly View and Creating .pdf - El Forum - 11-10-2009 [eluser]Isern Palaus[/eluser] Hello, You can google it 'css print friendly' and you will see a lot of articles. This seems a good ones: http://www.alistapart.com/articles/goingtoprint/. Wish it helps. Regards, Isern |