how to display multiple lines in one crystal report chart

Discussion in 'ASP .Net' started by michael, Jun 9, 2004.

  1. michael

    michael Guest

    Hi all,

    i want to know how to display multiple lines in one crystal report chart in
    asp.net

    i wrote some codes but it always display 2 lines in separate chart(please
    refer to the codes below), how can i display them in one chart? is there any
    settings i need to configure?


    =============
    DataRow row=this.webDS.Line.NewLineRow();
    row["grp"]="1";
    row["rq"]="11";
    row["val"]=10;
    this.webDS.Line.Rows.Add(row);

    row=this.webDS.Line.NewLineRow();
    row["grp"]="1";
    row["rq"]="11";
    row["val"]=20;
    this.webDS.Line.Rows.Add(row);

    row=this.webDS.Line.NewLineRow();
    row["grp"]="2";
    row["rq"]="11";
    row["val"]=13;
    this.webDS.Line.Rows.Add(row);

    row=this.webDS.Line.NewLineRow();
    row["grp"]="2";
    row["rq"]="11";
    row["val"]=17;
    this.webDS.Line.Rows.Add(row);

    Web.Report.DayLineRpt rpt=new Web.Report.DayLineRpt();
    rpt.SetDataSource(this.webDS);
    this.ReportLine.ReportSource=rpt;
    =============

    regards,

    benny
     
    michael, Jun 9, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. James Wallace
    Replies:
    0
    Views:
    1,067
    James Wallace
    Oct 17, 2003
  2. Jack
    Replies:
    9
    Views:
    2,692
  3. =?Utf-8?B?SmFpZ2FuZXNo?=

    Reading report content using Crystal Report Viewer XI

    =?Utf-8?B?SmFpZ2FuZXNo?=, Jan 4, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    1,194
    =?Utf-8?B?SmFpZ2FuZXNo?=
    Jan 4, 2006
  4. Learner
    Replies:
    1
    Views:
    1,143
    Richard Dudley
    Jan 11, 2006
  5. Comfort
    Replies:
    0
    Views:
    565
    Comfort
    Oct 18, 2004
Loading...

Share This Page