|
-
Jul 31st, 2003, 05:31 AM
#1
Thread Starter
Member
Print a MSChart or jpeg file
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|