I'm new to the forum and am looking for some help with a problem when printing web pages. I have a page with 4 records, each record have a data(dynamic).I need to break the page after completion of each record.(i mean page should not be break in middle
of the record) I am using page-break-after : always property to break a record. But its is not working.
No i don't want to print 1 record per page. I need to print the complete records (1 or 2 or 3 or 4 ). No record can be break at middle of the page and record data was not static( I mean number of rows can be changes for each record).
Can u have any solution for that ?( Note: crystal reports were not a solution)
siva0001
Member
40 Points
26 Posts
Problem when printing web pages.
Dec 04, 2012 12:09 PM|LINK
Hi
I'm new to the forum and am looking for some help with a problem when printing web pages. I have a page with 4 records, each record have a data(dynamic).I need to break the page after completion of each record.(i mean page should not be break in middle of the record) I am using page-break-after : always property to break a record. But its is not working.
Does anyone have any clue to solve the issue?
Many thanks
usman400
Contributor
3493 Points
721 Posts
Re: Problem when printing web pages.
Dec 05, 2012 03:59 AM|LINK
Plz tell more, I cant understand what u r saying
do you want to print 1 record on each page ?
If you will attach screenshots of whats currently happenin and what you want, then it will be more helpful to help
raju dasa
Star
14746 Points
2499 Posts
Re: Problem when printing web pages.
Dec 05, 2012 09:33 AM|LINK
Hi,
It depends on which element u set,
page-break-after : always //css rule.
if ur record is a div, provide it a class and apply above rule to that class.
or check this site: http://www.w3schools.com/cssref/pr_print_pageba.asp
rajudasa.blogspot.com || blog@opera
siva0001
Member
40 Points
26 Posts
Re: Problem when printing web pages.
Dec 07, 2012 11:07 AM|LINK
Thanks for rpy,
No i don't want to print 1 record per page. I need to print the complete records (1 or 2 or 3 or 4 ). No record can be break at middle of the page and record data was not static( I mean number of rows can be changes for each record).
Can u have any solution for that ?( Note: crystal reports were not a solution)
Thanks in advance..!!!!
raju dasa
Star
14746 Points
2499 Posts
Re: Problem when printing web pages.
Dec 07, 2012 01:22 PM|LINK
Hi,
Check these sites for solution:
http://stackoverflow.com/questions/5956856/preventing-page-breaks-in-a-table-when-printing
http://stackoverflow.com/questions/6586250/printing-html-tables-without-splitting-a-row-across-two-pages
rajudasa.blogspot.com || blog@opera