A JM Posted July 28, 2009 Share Posted July 28, 2009 Does anyone know of some available script(s) for printing Dynamic Table results? I'm looking for an example or some suggestions on how to print some of my Dynamic information.. Thanks. A JM, Quote Link to comment https://forums.phpfreaks.com/topic/167790-solved-how-to-print-dynamic-table-results/ Share on other sites More sharing options...
rhodesa Posted July 28, 2009 Share Posted July 28, 2009 dynamic can mean a lot of things. can you elaborate on that more? if you are looking for a table that can sort/filter/paginate/etc, here is a good JS widget: http://extjs.com/deploy/dev/examples/grid/grouping.html Quote Link to comment https://forums.phpfreaks.com/topic/167790-solved-how-to-print-dynamic-table-results/#findComment-884873 Share on other sites More sharing options...
A JM Posted July 28, 2009 Author Share Posted July 28, 2009 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, Quote Link to comment https://forums.phpfreaks.com/topic/167790-solved-how-to-print-dynamic-table-results/#findComment-884899 Share on other sites More sharing options...
rhodesa Posted July 28, 2009 Share Posted July 28, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/167790-solved-how-to-print-dynamic-table-results/#findComment-884908 Share on other sites More sharing options...
A JM Posted July 28, 2009 Author Share Posted July 28, 2009 Yes, printer friendly. Do you have any links to the CSS implementation? Also I assume I am to remove pagination on the "New" page? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/167790-solved-how-to-print-dynamic-table-results/#findComment-884927 Share on other sites More sharing options...
rhodesa Posted July 28, 2009 Share Posted July 28, 2009 before i give you a code sample...is all the data on one page already? if not, you can't do the CSS route Quote Link to comment https://forums.phpfreaks.com/topic/167790-solved-how-to-print-dynamic-table-results/#findComment-884933 Share on other sites More sharing options...
A JM Posted July 28, 2009 Author Share Posted July 28, 2009 Currently its using pagination but it won't be that difficult to remove and just let the recordset populate on a single page. If using CSS does it allow for page breaks when printing? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/167790-solved-how-to-print-dynamic-table-results/#findComment-885129 Share on other sites More sharing options...
rhodesa Posted July 28, 2009 Share Posted July 28, 2009 I wasn't sure so I jumped over to Google and found this site...which pretty much covers everything I was going to tell you: http://css-discuss.incutio.com/?page=PrintStylesheets Let me know if you need any further help Quote Link to comment https://forums.phpfreaks.com/topic/167790-solved-how-to-print-dynamic-table-results/#findComment-885144 Share on other sites More sharing options...
A JM Posted July 29, 2009 Author Share Posted July 29, 2009 Thanks for the help. A JM, Quote Link to comment https://forums.phpfreaks.com/topic/167790-solved-how-to-print-dynamic-table-results/#findComment-885788 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.