11-07-2002 11:05 AM
11-08-2002 09:27 AM
11-08-2002 01:29 PM
11-08-2002 08:44 PM
08-26-2011 07:28 AM - edited 08-26-2011 07:31 AM
Thanks!. I used this code. It doesnt shows any error.When I run, getting a blacked picture saved. I didnt changed any part of the coding. Please helpppp me
03-27-2013 12:24 AM
I have much simpler solution
Isert a Panel say panel1 including the area you want to print. You can change
the property of the panel like Panel1.Dock = Fill if you want to print the whole form. the insert the following code
Private Sub SaveFormToFile(ByVal filename As String)
Dim bmp As New Bitmap(Panel1.Width, Panel1.Height)
Panel1.DrawToBitmap(bmp, Panel1.DisplayRectangle)
bmp.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg)
End Sub
You can save the form by calling the following
SaveFormToFile("c:\Test.jpg))
Hope this will work
03-27-2013 12:26 AM
Please correct the sily mistake as
SaveFormToFile("c:\Test.jpg")