QR Code size depending on content

Stimulsoft Reports.NET discussion
Post Reply
codemonkey
Posts: 12
Joined: Fri Jan 17, 2020 3:02 pm

QR Code size depending on content

Post by codemonkey »

Hello!

I need to place a QR Code on a Report but it should be only visible AND taking space if it has content.
The IIF works well for the content but if it returns nothing the barcode element uses the same space as if it was filled.
Creating ugly empty fields in the report.

There is no "CanShrink" like in other elements like pictureboxes.

Is there a way to shrink the QR Code field when the QR Code itseld if empty?

Greetings and thank you for your help!
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: QR Code size depending on content

Post by Lech Kulikowski »

Hello,

You can add Condition with the "Component Is Enabled" option and hide it.

Thank you.
codemonkey
Posts: 12
Joined: Fri Jan 17, 2020 3:02 pm

Re: QR Code size depending on content

Post by codemonkey »

Thank you very much!

It works!
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: QR Code size depending on content

Post by Andrew »

You are welcome!
Post Reply