Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have one treeview in my page which has around 50 nodes and it is creating scrollbar inside that treeview and i have one print button on my page. which has JS command window.print().

When i click on that button it just print the data which is visible on screen not that for which we need to scroll down.

I have applied one CSS on treeview div which has attribute "Height:AUTO"
and
In link tag of that CSS i given media="print".

But still it is giving me the same results.
When i go into the source of that page it has that CSS applied on that div but not on data.

Any suggestion.

Thansk in Advance
Posted

1 solution

I wish you had published some pics to show your issue.
I guess your problem is for div tags which have scroll bars.
in print media you should change the style of divs .
I mean div tags must not have scroll bars when you want to print the data inside them.

Regards Jamal
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900