CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: MSchart control

  1. #1
    Join Date
    Nov 1999
    Posts
    5

    MSchart control

    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.



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: MSchart control

    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.


  3. #3
    Join Date
    Feb 2000
    Posts
    12

    Try this !!


    MSChart1.EditCopy
    Printer.Print " "
    Printer.PaintPicture Clipboard.GetData(), 0, 0
    Printer.EndDoc




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured