Solved

Need to save gridview as a image file

Posted on 2008-06-20
2
1,031 Views
Last Modified: 2010-04-21
Hi I have a gridview control on a web form and I need to save it as a Image either a .jpg, .tiff .png can anyone tell me how to do this?
0
Comment
Question by:charlesbaldo
2 Comments
 
LVL 5

Accepted Solution

by:
sadburger earned 500 total points
ID: 21831199
You could programmatically take a screen shot of the running application and save it as an image file.

See: http://www.c-sharpcorner.com/UploadFile/thiagu304/SnapIt01192007084645AM/SnapIt.aspx for examples of how to save a screenshot from within your .NET code.

You are basically going to be looking at the System.Drawing.Imaging namespace, the Bitmap class, and the CopyFromScreen method.
0
 

Author Closing Comment

by:charlesbaldo
ID: 31469145
Thats a great start, I appreciate the quick response.  Will have more posts on this project later for sure. Thanks again
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question