Jump to content

[SOLVED] How to print Dynamic table results?


A JM

Recommended Posts

Sure sorry...

 

In this particular instance I'm running a query against mySQL and the resultset is displayed on the page. I would like to be able to allow the end user to also print those results with a "PRINT" button or some other means. I just want to isolate the print to only the data in the resultset with headings.

 

The resultset can have 10 records to 100 records and will vary.

 

Thanks.

 

A JM,

 

 

So you want a printer friendly page? You have two options, if it can be done with CSS, the best way is to create a new stylesheet that overrides anything you have on the page and hides all the useless stuff. Then add it with the media type of "print". That way, when looking at the page, they see the pretty version, but when printing, it's just a nice, basic, easy to read version.

 

If not all the data is on the screen (aka there is pagination), you will want to make a Printer Friendly link which opens a new window with all the data.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.