Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dir my friends,
please how
How to Print GridView only in ASP.NET using vb.net code ?
i want to add button to print just the area that contain gridview in my page .
many thanks.

What I have tried:

I tried and did not succeed , 
so please help me about this.
Posted
Updated 30-Jun-17 0:47am

1 solution

Use a CSS media queries to control what is visible when the page is printed, use this to hide the elements you don't want printed like header\footer etc

CSS Print Media Query | Styling the Printable Version of your Site[^]
 
Share this answer
 

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