Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Oct 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Print more than one page

    hello everyone,

    i have a list of records getting them from a database and each record in this list take me to the same page like other records but with defferent value, ... i am trying to find a code that allow me to print all pages when i click on a button in the list page ... is there any way to do that or shall i need to print page by page ??? your help please ..

    thanks in advance,
    quince

  • #2
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    You can only print one page at a time, but you could write out all the database records to a single page and print that.

    hope this helps

    m_n
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper

  • #3
    New to the CF scene
    Join Date
    Oct 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well i have done that .. i am getting all records in one page but each record is going to a page with the same layout but with different value ....

    any way thanks alot martin_narg for your reply ... but i think there is a way ,,, that it allow u to print more than one page at a time

  • #4
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by quince
    ... but i think there is a way ,,, that it allow u to print more than one page at a time
    Unfortunately not using javascript mate. You would need to write all the records out to the same page and print that, or print each record individually. Also you could create a rich-text format file (http://www.biblioscape.com/rtf15_spec.htm) file and flush that to the browser (basically a download prompt), or even flush the output as a word document to the browser. Users can then save/print/etc that document - Because word is an html editor it would display your modified html output, it will also accept the mso-office specific styling for headers/footers/page numbers/etc. You would do this download prompt by changing the HTTP application header, more information available on request.

    Hope this helps.

    m_n
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper

  • #5
    Regular Coder
    Join Date
    Aug 2005
    Location
    Toronto, ON, Canada
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts

    just an idea

    PrintAllRecs function should create a sequence of popup windows.

    Each popup window should have m-records, print itself (window.print()) to printer and close itself.

    If out of sequence pages appear on printer, the process must be synchronized (setTimeout()).
    rm -f /

  • #6
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Nice idea mate, but will pop up endless print dialogue boxes - one per page. Also popup blockers will more than likely disable this. Also is very resource hungry!

    m_n
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •