Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
496 views
in Technique[技术] by (71.8m points)

reporting services - How do I display 'No data available.' when there are no rows to show on the report?

I am building an SSRS 2005 report using BIDS. My report filters on date. When the selected date returns no data rows the report is blank, just the title is displayed, no table or column heading.

How can I change this to display a message like No data available. or Report is empty.?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You could set the property NoRowsMessage available on the report's table control like this:

  • Select the Tablix control and press F4 to view the Properties pane.
  • Find the NoRowsMessage property and set the value to whatever message you'd like.
  • You can also to format the message using the Font and TextAlign properties.
    • Set no rows message

Here are some examples of what the report will look like under various settings:

example

Further Reading: Here is a Technet article on how to Set a No Data Message for a Data Region


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...