How to bound a report to the subreport control using script

Posted by: yxx7347 on 4 August 2017, 2:42 pm EST

  • Posted 4 August 2017, 2:42 pm EST

    In my project,I stored every report in database.Some of them have subreport.How can i bound a report to the subreport control using script. I tried many times and failed ,Help me! Crying

  • Replied 4 August 2017, 2:42 pm EST

    1) Your reports are stored in your database how? String name? the actual RPX file?

    2) Can you highlight a couple of your failed attempts please? This would help those of us interested in helping you by not having to go over the same ground twice or we might be able to see something in one of your attempts that you missed and turn it from failed into successful.
  • Replied 4 August 2017, 2:42 pm EST

    Thanks for your help, wsmith.

    Please also see the "A little more advanced" section of the following KB article:
    http://www.datadynamics.com/ShowPost.aspx?PostID=491
  • Replied 4 August 2017, 2:42 pm EST

    Hello! every body.

    I save my reports in database with the following method:
    1.   Dim byteRpt() As Byte
          byteRpt = ARD.Report.SaveLayout("", ddSOByteArray)
    2.    save the byteRpt to the Binary Field (SQL Server 2000)

    Reports saved in database can be loaded by every user of my C/S application.

    In my application, users can use runtime designer to make some reports. When they are designing, they can add several fixed reports as subreport to the mainreport's detail section. Now, I wonder How can I bound a report to the subreport control using Script in mainreport. 

    I'm Reading and trying PeterDD's topic, but not reach the target till now.  

      

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels