Creating crystal report's sub report in visual basic 6 RRS feed

  • Question

  • I'm trying to use Crystal reports 9 to add report with sub report on vb 6 code. This will print without previewing.

    Dim RptRec As New CryMainReport RptRec.Database.SetDataSource sqlMainReportRec RptRec.Subreport1.OpenSubreport.Database.SetDataSource sqlSubReportRec RptRec.ReadRecords RptRec.PrintOut False

    But in the printout it's not showing the data for the sub report. I placed this sub report in the main report's footer section. and sub report is an existing report of the project.

    Sunday, February 7, 2016 4:01 AM


  • Crystal reports forum is here.


     VB6 is no longer supported so the MSDN VB6 forums were abandoned years ago.




    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Edited by Dave PatrickMVP Sunday, February 7, 2016 4:29 AM
    • Proposed as answer by Mike Laughlin Monday, February 8, 2016 1:11 PM
    • Marked as answer by Just Karl Sunday, February 14, 2016 11:19 PM
    Sunday, February 7, 2016 4:26 AM