HI ,
Is it possible to dynamically position the table in the report.
i,e. I will have two table, first table will be displayed only if the query returns data, else it willl be hidden.
When the query does not returns any data, then the second table will be displayed( which will have some text displayed).
But my requirment is, both the table when displayed will be displayed from the first page itslef.
Something like this, First report will be vertically aligned to the top of the report. and the second table will be vertically alligned to the first table. So when the first table is hidden, then the second table will be rolled up while rendering the report
I have done it in other tool, but could not figure out in this tool.
We do something similar here . all of our reports have a small text box located at the top of the body section. This text box has a conditional visibility statement. If the data set returns no data this textbox will display a " no data returned" text string to the report.
All you need to do is add this statement to the visibility expression ( for the table or text box
=IIF(CountRows("DataSet")=0,False,True)
then some text to the table or text box explaining the lack of data.
="No data was returned for the chosen parameters."
hope this helps
|||Thanks sir,
That was a good idea.
|||FYI: There is also another way of doing this. Data regions (matrix, table, list, chart) and subreports have a so-called NoRows property. If set, this is the message to display in a textbox (which replaces the data region when no rows of data are available).
Note: the NoRows property is available in the VS properties window.
-- Robert
|||You are right Robert,
But, the problem with this approach is that the whole table structure will be replaced with the text specified in that property.
some people would like to see the table structure as well , even if the report does not have any data.
Hope i am making some sense.