Skip to Content
avatar image
Former Member

printing in one record in one HTML page using webdynpro

Hi experts,

I am developing one application,in which i have to print records in new html browser. while printing i am able to print two or three records in a single page. The client requirement is to print one record in one page and the other record in another page.Can anybody help me to do this?

while printing it should come as one record in one HTML page .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 26, 2009 at 07:23 AM

    Hi,

    in the HTML you are generating, put the below tag at the end of each record...

    put a paragraph tag < p > with style="page-break-before: always property....

    <p style="page-break-before: always">

    This will force a page break when printing, before the start of this particular <p> element

    refer below link as well....

    http://www.boutell.com/newfaq/creating/pagebreak.html

    Regards,

    SrinivaS

    Edited by: srinivas sistu on May 26, 2009 12:54 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Try this way...

      within the HEAD TAG

      write a style class like this

      TAG STYLE TYPE="text/css"

      P.breakhere {page-break-before: always}

      END OF TAG STYLE

      This then will be the activator for the page break:

      Now at the place where you want the page break use a BR or a P tag with below code...

      BR or P tag CLASS="breakhere"

      Here i am not able to write the html so i said P TAG like that....

      http://www.htmlgoodies.com/beyond/css/article.php/3470341

      Regards,

      SrinivaS

      Edited by: srinivas sistu on May 26, 2009 4:29 PM

  • avatar image
    Former Member
    May 26, 2009 at 11:58 AM

    i got the answer and it is solved.

    it works like this

    before body start in HTML paste this

    <style>.pbreak { page-break-after: always; }</style>

    and call this class='pbreak' before start of record.

    It solve the problem.so page by page can be printed.

    Add comment
    10|10000 characters needed characters exceeded