Results 1 to 2 of 2

Thread: maximum number of subreports a report can contain

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    maximum number of subreports a report can contain

    Hello,

    I am using a report that has 2 subreports and when I create a 3rd it does not display any data on the form where they should be in the other 2 subreports.

    My code is below.

    I if take 1 subreport off and leave the other 2 then the report will display the data. but if i add another one then it displays nothing in the other 2 subreports.

    I have used typed dataset. I don't have any groups, and deleted the links in the database expert of the report.


    Code:
     report.Load(Application.StartupPath & "/rptJobSheet5.rpt")
    
                report.SetDataSource(DS_JobSheet2)
                report.Subreports.Item(0).SetDataSource(DS_JobSheet2.Tables("IncidentTask"))
                report.Subreports.Item(1).SetDataSource(DS_JobSheet2.Tables("Supportcontracts"))
                report.Subreports.Item(2).SetDataSource(DS_JobSheet2.Tables("Client"))
    
                Me.CrystalReportViewer1.ReportSource = report
    Another quick question:
    item(0) what name would this be in the properties of the subreport. I create the subreport using the wizard and have called it Client. but if i do this item("client") it shows an error. Also I have tried changing the name to this in the subreport properites | name. Should I use the index of the name property.

    Thanks in advance,

    Steve
    steve

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

    Arrow Re: maximum number of subreports a report can contain


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