Results 1 to 7 of 7

Thread: Report and subreport from a Dataset

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Report and subreport from a Dataset

    I've got a report with 3 subreports on it. I also have a dataset that is built in memory (1 table with unique rows, and 3 tables that could have 2 or more rows linked back to the first table).

    When I try to have a link from the subreport back to the main report, I am getting "Missing parameter values". I thought that the passing of the parameter field was handled internally when the report wizard builds the report.

    So how do I get the parameters needed to be passed into the subreport?

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  2. #2
    New Member
    Join Date
    Apr 2006
    Posts
    13

    Re: Report and subreport from a Dataset

    Are you within a Visual Studio interface? I'd like to compare invokation method with you. When I upgraded from CR 8.5 to 11 the only data that will appear on my subreport is the link field.

    Kirk from Little Rock

  3. #3

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: Report and subreport from a Dataset

    Huh?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4
    New Member
    Join Date
    Apr 2006
    Posts
    13

    Re: Report and subreport from a Dataset

    Are you programming within Visual Studio. I use vb.net.

  5. #5

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: Report and subreport from a Dataset

    Yes, I am too
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  6. #6
    New Member
    Join Date
    Apr 2006
    Posts
    13

    Re: Report and subreport from a Dataset

    Here is the pertinent code for to preview my crystall v.11 report in vs.net:

    DataSetRptDocketBase1.Clear()
    SqlRptDocketBase.Fill(DataSetRptDocketBase1)
    DataSetRptSubDocketDetail1.Clear()
    SqlRptSubDocketDetail.Fill(DataSetRptSubDocketDetail1)
    Dim myreport As New RptDocketsShort
    Dim RptDocketPreview As New frmPreviewReport(myreport)
    myreport.SetDataSource(DataSetRptDocketBase1)
    myreport.OpenSubreport("RptSubDocketDetail.rpt").SetDataSource_(DataSetRptSubDocketDetail1)
    RptDocketPreview.ShowDialog()

    My subreport is linked on a key field within both the datasets and also on both the parent report and the subreport. My problem is that when I upgraded from v8.5 to v11 in CR only the link field is being populated and printed. Any ideas?

  7. #7

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: Report and subreport from a Dataset

    Well, your first problem seems to be that you are hijacking my thread. But send me money and I'll forgive you.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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