Last post Feb 04, 2009 11:14 AM by snuffnit
Sep 30, 2008 02:56 PM|jrp210|LINK
I would like to save my GridView as an image but can't seem to do so. Below is my code I have up to this point but the image produces the text "System.Web.UI.WebControls.GridView" instead of the gridview itself. Any assistance would be appreciated!
private void ConvertGridToImage(GridView gridView,
Bitmap bm = new Bitmap(468, 60);
Graphics graphic = Graphics.FromImage(bm);
Brush brush = new SolidBrush(Color.YellowGreen);
Brush brushWrite = new SolidBrush(Color.White);
Font font = new Font("Arial", 13);
PointF point = new PointF(5F, 5F);
graphic.DrawString(gridView.ToString(), font, brushWrite, point);
Feb 04, 2009 11:14 AM|snuffnit|LINK
Did you figure out a way to do this ?