Print table with horizontal scroll
I have to print a table with horizontal scroll and I need to print everything. The thi开发者_开发百科ng is that when te code does "Window.Print()" it cuts my page and doesn't show all the info of the table. I really need your help!! I need to "cut" my table and put it below if it doesn't fit the page.
(i can't put a fixed value width to the table because i don't know how much columns i might have, it can be like 2 or 50)
Thanks!!!!
I'm not aware of a particularly good solution for this. Printing HTML tables is usually problematic. Consider making a printer-friendly version where you cut the table programmatically into groups of columns that make sense together. You may need to repeat columns that uniquely identify each row. Proper CSS can help your table to fit to the width of the page. I can't think of another way to do it that really outputs a very usable table.
精彩评论