Hiding specific series in BeforePrint event

Stimulsoft Reports.PHP discussion
Post Reply
pvb
Posts: 8
Joined: Tue Oct 13, 2020 3:40 pm

Hiding specific series in BeforePrint event

Post by pvb » Wed Nov 11, 2020 10:33 am

I want to hide specific series before print, based on some condition.

I have tried to put something like this in BeforPrint event for Chart1

Code: Select all

Chart1.Series[0].LineStyle = "None";
But it does not work. I have an error "Cannot read property 0 of undefined".

Can you tell me the right syntax?
Post Reply