Results 1 to 5 of 5

Thread: [RESOLVED] Need data from two tables displayed

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    910

    Resolved [RESOLVED] Need data from two tables displayed

    Hi,
    I built a report that currently pulls from one table and uses the following code to populate it.
    VB Code:
    1. Dim cr As New ReportDocument
    2.             cr.Load(strAppPath & "\Reports\SchDaysPerDept.rpt")
    3.             cr.SetDataSource(ds.Tables("tblVacationTaken"))
    4.  
    5.             CrystalReportViewer1.ReportSource = cr

    How can I populate this if the data is from two tables?
    Thanks

  2. #2
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Arrow Re: Need data from two tables displayed

    Read the crystal report tutoruial at my signature.
    There is need proper linking in the two table for showing data.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    910

    Re: Need data from two tables displayed

    shakti,
    I clicked on the crystal report tutorial in your sig and read through it. All this does it tell you how to use parameters. I am trying to use two different tables.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    910

    Re: Need data from two tables displayed

    I found it. It was under "CR in VB.NET" in your sig.
    Thanks

  5. #5
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Arrow Re: Need data from two tables displayed

    Quote Originally Posted by jre1229
    I found it. It was under "CR in VB.NET" in your sig.
    Thanks
    your welcome
    but before posting the question show that in which language you are using the CR

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