Page 1 of 1

Data access in report 'code-behind'

Posted: Thu Dec 05, 2024 2:02 pm
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 100 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!

Re: Data access in report 'code-behind'

Posted: Fri Dec 06, 2024 5:58 pm
by Lech Kulikowski
Hello,

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

Thank you.