hide empty textbox

Stimulsoft Reports.NET discussion
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

hide empty textbox

Post by nezarabd »

i have 6 textbox with data in

i want if textbox in middle is empty it will disabled and the next textbox will replace the empty textbox in position

thanks in advance
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: hide empty textbox

Post by Alex K. »

Hello,

Please try to use the DockStyle property.

Thank you.
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: hide empty textbox

Post by nezarabd »

example pls
and how to check that the data in the text box is empty

i use

CType(StiReport1.Pages("Page1").GetComponents("Text46"), Stimulsoft.Report.Components.StiText).value

but it return the name of tha field
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: hide empty textbox

Post by Alex K. »

Hello,

Please send us a sample report for analysis.

Thank you.
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: hide empty textbox

Post by nezarabd »

it is in arabic language
Attachments
empo.mrt
(20.46 KiB) Downloaded 444 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: hide empty textbox

Post by Alex K. »

Hello,

Please check the modified report.

Thank you.
Attachments
empo_modified.mrt
(21.55 KiB) Downloaded 553 times
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: hide empty textbox

Post by nezarabd »

how to check if the field is empty to make it disabed
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: hide empty textbox

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: hide empty textbox

Post by nezarabd »

i have textbox with field in
i want to check if the value of the field is empy to disable it's textbox

thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: hide empty textbox

Post by Alex K. »

Hello,

Please try to add the Condition with expression:
DataSourceName["ColumnName"] == DBNull.Value
and use the ComponentIsEnabled option.

Thank you.
Post Reply