C1Report to Flex report - subreport data source question

Posted by: milosic.bogdan on 18 October 2018, 6:25 pm EST

    • Post Options:
    • Link

    Posted 18 October 2018, 6:25 pm EST

    Hello

    Im converting some older c1reports to Flex reports.

    In vb.net code i fill data tables with desired data and then send it to report:

    
    
    Dim dtsub1 As DataTable = GetSomeDataTable1
    
    C1Report1.Fields("sub1").Subreport.DataSource.Recordset = dtsub1
    
    Dim dtsub2 As DataTable = GetSomeDataTable2
    
    C1Report1.Fields("sub2").Subreport.DataSource.Recordset = dtsub2
    
    C1PrintPreviewDialog1.Document = C1Report1.Document
    
    C1PrintPreviewDialog1.Show()
    
    
    

    Is it possible to fill suberport in flex report on same way?

  • Posted 19 October 2018, 1:15 am EST

    Hi,

    cast “C1Report1.Fields(“sub1”)” to “Field”. The class “Field” has a property “Subreport”.

    Best regards

    Wolfgang

Need extra support?

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

Learn More

Forum Channels