Page 1 of 2

hide empty textbox

Posted: Wed Dec 24, 2014 6:30 pm
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

Re: hide empty textbox

Posted: Fri Dec 26, 2014 6:25 am
by Alex K.
Hello,

Please try to use the DockStyle property.

Thank you.

Re: hide empty textbox

Posted: Fri Dec 26, 2014 8:40 am
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

Re: hide empty textbox

Posted: Fri Dec 26, 2014 9:00 am
by Alex K.
Hello,

Please send us a sample report for analysis.

Thank you.

Re: hide empty textbox

Posted: Fri Dec 26, 2014 9:19 am
by nezarabd
it is in arabic language

Re: hide empty textbox

Posted: Fri Dec 26, 2014 10:25 am
by Alex K.
Hello,

Please check the modified report.

Thank you.

Re: hide empty textbox

Posted: Fri Dec 26, 2014 10:43 am
by nezarabd
how to check if the field is empty to make it disabed

Re: hide empty textbox

Posted: Fri Dec 26, 2014 10:51 am
by Alex K.
Hello,

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

Thank you.

Re: hide empty textbox

Posted: Fri Dec 26, 2014 12:23 pm
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

Re: hide empty textbox

Posted: Fri Dec 26, 2014 12:26 pm
by Alex K.
Hello,

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

Thank you.