Hide BarCode component

Stimulsoft Reports.NET discussion
Post Reply
DavideBak
Posts: 13
Joined: Fri Aug 10, 2012 10:45 am

Hide BarCode component

Post by DavideBak »

Hello, I've a question about BarCode component.

There is a way to set the visibility of a BarCode component?

I've to create a report with a table and under it an optional BarCode component. I would like to set the BarCode visibility using a variable. Is it possible?

Thanks in advance,
Davide
DavideBak
Posts: 13
Joined: Fri Aug 10, 2012 10:45 am

Re: Hide BarCode component

Post by DavideBak »

I used this code in Designer code and it works :
this.BarCode1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0.0, 0.0, 0.0, 0.0);
but I think it' not really correct =) Does anyone have better solution?

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Hide BarCode component

Post by HighAley »

Hello.

You should use a Condition of the BarCode or an Enabled property.

Thank you.
Post Reply