Question summary:
I have a page which displays an html table with cells approximately 100px per 100px. This table can be anywhere from 1 column/row to N columns/rows but I need to create a system which correctly prints this document across all browsers.
What I have tried so far:
My current solution utilises this answer from another SO question: https://stackoverflow.com/a/19582173/781884
Problem with current solution
This solution does work relatively well in certain situations using Chrome. The problem is a lot of our users use IE7 and it does not work well, especially when printing large tables.
Possible solutions I had:
- Create a button which utilises the current system but it "cuts" the page at multiple different widths to allow printing in horizontal / vertical / a3 (horizontal and vertical). This is most definitely the quickest fix but it still leaves the possibility that IE7 doesn't work properly and it prints a table which makes no sense at all (which happens under certain conditions)
- Create a PDF file of the page (multiple different size variations included) to allow the user to export the size they require. The problem with this is the time that I will need to invest to see how this can be done and to overcome any issues we have with very large tables. This is by far the most risky in terms of investement / benefit
- The third option is obviously to scrap the whole idea and change the logic of the page to not have a table but display the data in a different manner. This would preferably be avoided.