Welcome Guest, Not a member yet? Register   Sign In
Printer Friendly View and Creating .pdf
#1

[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);
$this->load->view('results');
$this->load->view('include/footer');

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?
#2

[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




Theme © iAndrew 2016 - Forum software by © MyBB