File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

print huge table with huge columns

 
Edward Chen
Ranch Hand
Posts: 798
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 169
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try window.document.print();
 
Edward Chen
Ranch Hand
Posts: 798
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

It will 'eat' columns.

The table has 45columns and 359 rows.
 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CSS Print Media is an option

Probably better would be to invest in a pdf converter.

Eric
 
Edward Chen
Ranch Hand
Posts: 798
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic