Jump to content

Print all pages help with mysql report using paging.


Darkmatter5

Recommended Posts

I've got a report that pages the results and current has about 111 pages in the report. I have a print page button on each page of the report to print out a specific page using the following code:

 

<input type='Button' name='printit' value='print' onclick='javascript:window.print();'>

 

Can someone help me with making a print all button to have the button initiate printing of all the pages in the report, not just the current one?

 

Thanks!

Link to comment
Share on other sites

Without creating 111 print jobs, the only way to do that is to return the full results of the report in one location. So, you can either keep the same code and get rid of the paging part for when you want to print all, or you can probably use a server side printer function from whatever language you are using. PHP has printer functions. I have never used it so I have no idea how to format the text you send to it, but it would be something to look into if you don't want a huge page.

http://www.php.net/manual/en/function.printer-write.php

Link to comment
Share on other sites

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.