Solved

Need to save gridview as a image file

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
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…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

809 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