Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.