I'd like to save display of mschart control as a bitmap file. Is it possible? How can I do it? Thanks for your answer.
Printable View
I'd like to save display of mschart control as a bitmap file. Is it possible? How can I do it? Thanks for your answer.
there may be better solutions but this one works:
use the EditCopy method of the chart to copy the graph into the clipboard, then
do a picture1.Picture = clipboard.GetData
and call the SavePicture function to save the picture box contents to a bitmap file.
MSChart1.EditCopy
Printer.Print " "
Printer.PaintPicture Clipboard.GetData(), 0, 0
Printer.EndDoc