Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Printing out all pages

by fuzzyping (Chaplain)
on Jan 01, 2005 at 22:55 UTC ( [id://418710]=note: print w/replies, xml ) Need Help??


in reply to Printing out all pages

It sounds to me like you're adding unnecessary complexity to the problem. If you want to print out all of the sessions, why not simply print them out via pipe to lpr? Why bother trying to prepare them for your browser, when the end effect is the same?

What I'm really getting at is to avoid introducing your browser into the scenario at all. If you want to print them out, then just write a short function/method (or new script) to query the db and format/print out the results.

As far as viewing 100 rows per browser view, you want to integrate some sort of pager functionality. This can be done quite easily by crafting your sql query to increment each time.

Hope this helps,

-fp

Replies are listed 'Best First'.
Re^2: Printing out all pages
by perleager (Pilgrim) on Jan 01, 2005 at 23:30 UTC
    Thank you all for replying-

    Lets say my first feature, which prints out all 1000 results onto a single HTML page. Now If I click print from the browser, it'll Automatically print all 1000 results broken up into pages (As of now its not 100 per page).

    Now what I want to do is to edit my perl coding so it Displays out 100 results per page. But IF I do it this way , then I can't just click print from the browser and have ALL 1000 results printed, instead it will only print the results displayed on that Current Page (100 results will be displayed).

    So my question is there anyway to make a "PRINT ALL RESULTS FROM ALL PAGES" feature? I think ifuzzyping\i came closest to understanding my question since he mentioned a function to query the db and format/print results.

    Thank you,
    Perleager

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://418710]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-23 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found