locked
Hiding subreport using expression RRS feed

  • Question

  • User-1369029606 posted

    I am trying to show the supreport if textbox1 length > 50 or textbox2 length > 100. The following does not seem to be working.

    =(Fields!textbox1.Value.ToString().Length > 50) OR (Fields!textbox2.Value.ToString().Length > 100)

    Monday, June 6, 2011 3:55 PM

Answers

  • User2105670541 posted

    Use the code below on SubReport visiblity expression editor, let me know if the line below dont work

    =iif(len(Fields!textbox1.Value)>50 or len(Fields!textbox2.Value)>100,false,true)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 7, 2011 5:21 AM
  • User1471008070 posted

    Hi,

    Does Ashutosh's reply help you? If so please mark it as answer, if not please give some feedback.

    Just give some addtional information, is textbox1 and textbox2 your fied's name or textbox's name? If it is textbox's name, I think you should replace the textbox1 and textbox2 with your filed in the textbox.

    Thanks,
    Challen Fu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 8, 2011 3:51 AM

All replies

  • User2105670541 posted

    Use the code below on SubReport visiblity expression editor, let me know if the line below dont work

    =iif(len(Fields!textbox1.Value)>50 or len(Fields!textbox2.Value)>100,false,true)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 7, 2011 5:21 AM
  • User1471008070 posted

    Hi,

    Does Ashutosh's reply help you? If so please mark it as answer, if not please give some feedback.

    Just give some addtional information, is textbox1 and textbox2 your fied's name or textbox's name? If it is textbox's name, I think you should replace the textbox1 and textbox2 with your filed in the textbox.

    Thanks,
    Challen Fu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 8, 2011 3:51 AM