Data access in report 'code-behind'

Stimulsoft BI Designer discussion
Post Reply
ŁukaszL
Posts: 1
Joined: Thu Dec 05, 2024 1:33 pm

Data access in report 'code-behind'

Post by ŁukaszL »

Hi,
is it possible to access data (in report code) in order to set SeriesLabels visibility?

Code: Select all

public class Report : Stimulsoft.Report.StiReport
    {
        public Report()        {
            this.InitializeComponent();
		//this works
		this.Chart1.SeriesLabels.Visible = false;
		//how to achieve this
		this.Chart1.SeriesLabels.Visible = access flag 'ShowSeriesLabels' in report data
        }

        #region StiReport Designer generated code - do not modify
	#endregion StiReport Designer generated code - do not modify
    }
repData.json
(646 Bytes) Downloaded 59 times
In case you need json data source, I placed it in attachments.

Thank you in advance for any assistance. Best regards and have a wonderful day!
Attachments
flag.png
flag.png (11.14 KiB) Viewed 694 times
Lech Kulikowski
Posts: 6977
Joined: Tue Mar 20, 2018 5:34 am

Re: Data access in report 'code-behind'

Post by Lech Kulikowski »

Hello,

You can set properties from the code in the BeginRender event of the report.

Thank you.
Post Reply