Have searched but haven´t found anything yet.
Is there possible to print a MSChart (graph) or print a jpeg file?
And if I print the jpeg file I have to unload it so I can overwrite that file

The code I´m using now is:
Dim jpeg as Bitmap
jpeg = Hardcopy.CreateBitmap(Graph)
jpeg.Save("test2.jpeg", System.Drawing.Imaging.ImageFormat.Jpeg)
PB_Graph.Image = Image.FromFile("test2.jpeg")

Hardcopy is just to get the picture

On the saverow I get this error when I´m trying to replace the image: Additional information: A generic error occurred in GDI+.

Is there any way to unload the picture? Tried PB_Graph.Image = Nothing
But it didn´t help.

Or is there a way around this. To get the MSChart printed out?
How to get the print to work if the unload works?
Thanks for answers.