On Sat, Jun 29, 2013 at 7:34 PM, Abdur Rahman <[email protected]> wrote:
> I am using pure HTML and javascript here is the code > > http://jsfiddle.net/yp7SA/1/ > > i tested it on the Chrome and firefox > > when i print from firefox page break works fine at the same time when i > print the output table from chrome it splits up the table rows at the page > break. > Page formatted printing of a table from a browser has always been a problem. I struggled with this early last decade. I do not know if printing support has gotten better in HTML over time. The way I was able to handle this: a) ensure that the contents fit well within a page and give page breaks b) ensure no cell is blank but has atleast one space if it has to be blank. Prevents cell collapsing. I'd recommend you give a print button in the screen and do a PDF generation on the backend which supports the HTML tags properly for printing. -- Mohan Sundaram _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ILUGC Mailing List Guidelines: http://ilugc.in/mailinglist-guidelines
