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

Thread: mschart

  1. #1
    Join Date
    Jun 2001
    Posts
    5

    mschart

    Please let me about MS-Chart control, how to define its coordinates using recordset, etc. How do i print ms-chart throug code?




  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: mschart

    Use Microsoft Chart Control.

    Private Sub Command1_Click()

    Chart1.ColumnCount = 1
    Chart1.RowCount = 3
    Chart1.Column = 1


    Chart1.Row = 1: Chart1.Data = 1
    Chart1.RowLabel = "January" 'label for bar 1(row)
    Chart1.Row = 2: Chart1.Data = 2
    Chart1.RowLabel = "February"
    Chart1.Row = 3: Chart1.Data = 3
    Chart1.RowLabel = "March"

    end sub

    Here instead of 1,2,3 put your recordset values: rs!Field1....etc

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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