Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

I need to convert an MSChart object to either a BMP or JPEG file. I've tried converting the MSChart object to a Graphics object using the CreateGraphics() method of the MSChart object, but the bmp thus obtained is an all black image, though the file size is pretty large.

Basically, I need to obtain the MSChart image in a MS Word(.doc) file, programmatically.

Would appreciate any help...

Thanx,

-Girish.

  • *Gurus*
Posted
The MSChart control has a method which copies its graph to the clipboard as a windows metafile. You should be able to extract that metafile from the clipboard using .NET and save it using the Bitmap class's Save method.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...