Solved

Need to save gridview as a image file

Posted on 2008-06-20
2
1,028 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
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.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now