aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes web page printing 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 "web page printing" Watch "web page printing" New topic
Author

web page printing

prasad agarwal
Ranch Hand

Joined: Aug 24, 2006
Posts: 44
Hi all,..

Well i have a question,.. i have a JSP page with a print button which does what is expected. The thing that is troubling me is: in the JSP page we have a textarea


Sometimes the content is very huge that everything will not be visible and we get a scrollbar ,.. no problem here.. but what we want is when we take a print-out, we actually want everything inside the <textarea> to be printed rather than what is visible...

I really apprecaite your help on this very much
I guess this can be achieved thru CSS... but i'm not that good at it.

Thanks again

[ March 06, 2007: Message edited by: prasad agarwal ]

[ March 06, 2007: Message edited by: prasad agarwal ]
[ March 06, 2007: Message edited by: Bear Bibeault ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
hmmmm

Not positive it will work in all browsers, but worth a shot:



Eric
prasad agarwal
Ranch Hand

Joined: Aug 24, 2006
Posts: 44
Hi Eric Pascarello,

Thanks a lot man,.. you always help me when it comes to CSS and javascript
i mean it ,.. always.. Appreciate


I bought your book "Ajax in Action"; I started the book but got busy with the project ,.. so it's been a while,...
I will get serious and try to finish the book,... in the mean time if i have questions in the book, i can ask you

Cheers
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Did that code actually work? I work that as a whim without testing. I thought I would take a shot in the dark! lol

And if you have questions on the book, feel free to ask here or on Manning's forums.

Eric
prasad agarwal
Ranch Hand

Joined: Aug 24, 2006
Posts: 44
Yeah it did work
 
 
subject: web page printing