print problem
-
I have a report page with 2 tables.I want to print the second table at 2. page because 1.table may become longer and pushes the second table. I read articles about this at codeproject and other sites but it did not work at my aspx page. Do i miss something? Thanx in advance I tried : <style media="print">.pagebreaker { page-break-before: always } </style> <table class="pagebreaker"> And <style> @media="print" { .pagebreaker { page-break-before: always } } </style> --junior coder--
-
I have a report page with 2 tables.I want to print the second table at 2. page because 1.table may become longer and pushes the second table. I read articles about this at codeproject and other sites but it did not work at my aspx page. Do i miss something? Thanx in advance I tried : <style media="print">.pagebreaker { page-break-before: always } </style> <table class="pagebreaker"> And <style> @media="print" { .pagebreaker { page-break-before: always } } </style> --junior coder--
do this.. cereate a separate css file without mentioning any media.. define a class in that file e.g. .pbrkbefore { page-break-before: always; } then link that file in header section of your main file with tag.. insert a parent table in your page..
........... ........... reason for parent and child table is that this way explorer insert the page break at ezxact location.. without this it might not give you correct result.. Salim Akbar