Hi Sobhan,
Try adding the following code to your HTML between the <HEAD> and </HEAD> tags:
<STYLE TYPE="text/css"> P.breakhere {page-break-before: always} </STYLE>
Now add the following line of code wherever you need a new page (e.g. after each customer):
<P CLASS="breakhere">
Hope that helps!
Regards,
Tammie
Hi,
I insist : it is not possible with HTML to insert Page breaks. BUT, Tammie is right! You can use CSS (Cascade Style Sheet) to insert page breaks thanks to few lines of code in your HTML page.
Follow this link to have a look at a very simple piece of code to illustrate this :
http://www.codeave.com/css/code.asp?u_log=4016
Here it the code if you don't have access to this URL :
<html> <head> <title>CodeAve.com/CSS - Page Break</title> <body bgcolor="#FFFFFF"> <center> Page 1 <br style="page-break-before:always;"> Page 2 <br style="page-break-after:always;"> Page 3 <p> Use print preview on your browser to see how<br> this page would print out to three pages </center> </body> </html>
Hope it helps.
Don't forget to close the post if solved (so that search in the forum is easier), and reward points (so that SDN members are happy !) 😉
Hi,
Either you try to modify after its generation like Tammie said, or you may want to modify this routine :
Program : SAPLSURL
Include : LSURLF04
Subroutine : WRITE_LINES
You will find that lines of your report are processed in the "LOOP AT list_lines ... ENDLOOP" part of this routine.
You have to determine from the various fields of the table list_lines which combination indicates that there is a page_break and then insert the CSS code accordingly.
Good luck and get back if necessary.
DOn't forget to award points if answers above are heplful.
Cheers.
Message was edited by: Guillaume Garcia
Add comment