SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: How do I send a form feed from my perl script

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2002
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I send a form feed from my perl script

    Can anyone help?

    My script prints a html table containing various bits of information - substitutes new values for the variable and prints out a further table - this loops several times.

    What I want to do is send a form feed between each table so that when the print function on the browser is used the tables will each print out on a separate sheet of paper.

    I have thought of counting lines on the page and then looping a print "<br />" to the total number of lines for a page but I'm sure there is a far more simple solution.

    Any help would be greatly appreciated.

    David Gale

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    Svíþjóð
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Insert this after each table:

    <br style="page-break-after: always;">

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2002
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you Jofa - that does the job nicely.

    Regards
    David Gale

Bookmarks

Posting Permissions

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