Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print from a treeview

Status
Not open for further replies.

231166

Programmer
Apr 5, 2005
104
FR
Hi,

I have created a treeview and would like to give a user the possibility to print from the root of the treeview, it means from the first level of the treeview
For example if the treeview is constructed like this

1
2
3
4

I would like to give the user to print all the tree when he cliks in the 1, it means on the root of the treeview.
Could you help me on this point.
I would like to tell that in my treeview the level 1 is a label called Microthesaurus and all level 2,3 and 4 are terms .
The microthesaurus label has a tag which form is MT+number
and each term has a tag which form is GT+number.

I hope it could help.

Thanks a lot from you for your help.

Best regards.

Nathalie

 
You could assign the items you want to print a CSSClass, then use an external stylesheet with the media="print" tag to only show these items. The browser will automatically select the stylesheet when the user selects print from the page. For more information, read up on the the media="print" tag, the use of stylesheets and also try asking in the HTML forum if you get any problems.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Hi and thanks a lotfor your help.

If i am on a treeview created in vb.net(winforms) how can i access to cssclass?

is vb.net proposes to use cssclasses?

Thanks for your help.

Nathalie
 
This forum is for ASP.NET pages. If you are using win forms post in this forum: forum796
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top