Need to print with a twist

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
micknc
Forum Contributor
Posts: 115
Joined: Thu Jan 24, 2008 11:13 pm

Need to print with a twist

Post by micknc »

I have created a script that querys mysql into a neatly aligned report for printing. This works great when I want to print one form at a time but I really need to add the ability to print multiple reports at one time.

For the example my report uses a GET function to access the proper records. I want to keep this form for printing single records but i would also like to add the ability to print all records between (lets say) 100 and 150 with one form submission. I could use a between variable in the my query but I think that would result in a mess with the form.

Currently I submit the form and use the browsers print option. I have been trying different things including the printer_open function but I think I need a new approach. I am not against using Java or even active X because this is an intranet site that we are using locally.

I have been at this form all day so there could be a very easy way to accomplish what I want but my brain is taxed.
Thanks for the advice,
Mick
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Need to print with a twist

Post by califdon »

You'll need to give us a better idea of what sort of a report layout you now have and what you would like to have for a range of records and what would determine which records you would want for a particular report (probably not sequential, like 100 to 150, I should think).
Post Reply