This is a migrated thread and some comments may be shown as answers.

How to present the available reports to the user?

2 Answers 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 2
Alex asked on 29 Jul 2011, 04:27 PM
In a Silverlight app I have a ListBox which is populated using the results of the ListAvailableReports service method(available from the report service).
The method's result is an IList<ReportInfo>.
The class ReportInfo has 3 properties:
Name - contains the report Class name in the Report Library,
FullName - contains the full assembly name,
and
Description.

Obviously I cannot use the firs two, for the user to identify the Report.
My question is: How do I populate the Description property? (What property do I need to set in the Report class on the server ?)
I've looked for some time, but i cannot find it.

Ty for your time,
Alex.

Edit: I use the Reporting 2011 Q2.

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 03 Aug 2011, 09:01 AM
Hello Alex,

The ReportInfo.Description property is populated from the report's description attribute. Check out the following code snippet:

[Description("This is the report's description.")]
public partial class MyReport: Telerik.Reporting.Report
{
    public MyReport()
    {
Hope this helps.

All the best,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Alex
Top achievements
Rank 2
answered on 03 Aug 2011, 09:30 AM
Thank you very much for the answer ... to be honest I would not have never thought that the description is populated by setting a class attribute :).
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 2
Answers by
Peter
Telerik team
Alex
Top achievements
Rank 2
Share this question
or