GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes print  huge table with huge columns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "print  huge table with huge columns" Watch "print  huge table with huge columns" New topic
Author

print huge table with huge columns

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
I have huge table with huge columns, how to print it out ? Where I can find a sample ?

Any link is welcome.

Thanks.
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
try window.document.print();
Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
Thanks.

It will 'eat' columns.

The table has 45columns and 359 rows.
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
In that case you might need to change the layout during printing, there is style page property which allows to change the layout but it works in very latest versions of internet browsers
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
CSS Print Media is an option

Probably better would be to invest in a pdf converter.

Eric
Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
The solution is to break a table into small tables, for example, 45 columns will break into 3 sub tables , each of which has 15 columns. This way could get a nice print effect. 'CSS Print Media' could do this way? Could you give me an example link?

I have tried Firefox, it still 'eats' columns.

Thanks
 
GeeCON Prague 2014
 
subject: print huge table with huge columns