Click to See Complete Forum and Search --> : MSchart control


sangyun
November 2nd, 1999, 05:02 AM
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.

Lothar Haensler
November 2nd, 1999, 06:16 AM
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.

DavidTu
February 29th, 2000, 01:09 PM
MSChart1.EditCopy
Printer.Print " "
Printer.PaintPicture Clipboard.GetData(), 0, 0
Printer.EndDoc