none
Subreport Suppression RRS feed

  • Question

  • Hi,

     

    I have a main report "Main.rdlc" which contains about 10 - 15 subreports. Some but not all of these are always populated when the report is run. However, the remaining reports are not always populated and I wish to hide these when this is the case.

     

    Because these reports are being run locally, and I am assigning the DataSources manually. Each subreport has 2 DataSets. 1 for Labels and another for Data, I was trying to do the following:

    1. Check the Data dataset to see if it had any contents

    2. if it did, then continue on as normal

    3. but if it didnt, then I was assigning am empty dataTable as the datasource for the labels

    4. I then went to the subreport entry in the designer for "Main.rdlc", and set the text for NoRows property

     

    The above however does not work...it simply does the exact same is if I wasnt dealing with the issue at all (as before).

    Has anyone ever tried this and if so, how did you accomplish same?

     

    Thanks!

    Friday, July 6, 2007 3:26 PM