FlexReport (WinForms) Set Tag value.

Posted by: mwebster on 20 May 2021, 6:00 am EST

  • Posted 20 May 2021, 6:00 am EST

    I am running into an odd issue with Flex Report. I am loading a report, setting its data source to a datatable, placing some text in the report.tag property and displaying the report in a flexviewer. This is the code I am using:

    C1FlexReport1.Load(RptPath, RptTitle)
    C1FlexReport1.Tag = RptTag
    C1FlexReport1.DataSource.Recordset = RptData
    C1FlexViewer1.DocumentSource = C1FlexReport1

    Everything works great except that the value that I place in the Tag property. I am trying to show that value in a field and it does not work. if I edit the report and stick a test value into the Tag property and run my report, it appears as expected but when I set the tag property using the above code, it does not work. Any suggestions?
  • Marked as Answer

    Replied 20 May 2021, 5:58 pm EST

    Hi Mike,

    Sorry, we do not face the issue at our end when updating the Tag value via Code.
    Please find the attached sample implementing the same.

    Prabhat Sharma.
  • Replied 20 May 2021, 5:59 pm EST

  • Replied 20 May 2021, 9:42 pm EST

    Sorry - figured it out. Was a dumb error on my part.
Need extra support?

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

Learn More

Forum Channels