private void bt_saveImage_Click(object sender, System.EventArgs e)
{
using (Bitmap printImage = new Bitmap(tlp.Width, tlp.Height))
{
tlp.DrawToBitmap(printImage, new Rectangle(0, 0, printImage.Width, printImage.Height));
printImage.Save( "C:/image.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);
}
throw new System.NotImplementedException();
}
I have error saying “ExternalException is unhanlered; A generic error occurred in GDI+.” on
"printImage.Save( "C:/image.jpg",System.Drawing.Imaging.ImageFormat.Jpeg)“
Thanks for help!
Use @ before “C:\image.jpg”
OR
Use “\\” in the location