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

Changing Document Name for Exporting

4 Answers 452 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 2
Brad asked on 14 Dec 2012, 08:29 PM
Hello Everyone,

Any help would be greatly appreciated. 

I am trying to set the document name to LastName_FirstName as my report is a summary of an individual. Is there a way to either access my dataset fields LastName and FIrstName to set an expression for the document name or can I dynamically change the documentname property in the reportviewer.aspx code behind? I use Visual Basic.

My only options for document name expressions are as follows: Constants, Functions, GlobalObjects, and Report Parameters.

Again any help would be fantastic.

Thanks,

Brad

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 18 Dec 2012, 09:38 AM
Hello Brad,

The built-in Fields value refers to a column from your datasource i.e. it is expected to return a value for each record from your datasource. The DocumentName on the other hand expects a String that would be used as the name for the exported report and this is evaluated on report document level (Report, ReportBook). In short you cannot use datasource fields in it and that is why you do not see the fields in the Expression Editor for DocumentName property.

Kind regards,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
answered on 08 Mar 2019, 07:19 PM

Another report limitation that makes no sense.  By the time the report would get exported all the fields and datasets have been retrieved, so why not have them as an option?  The more I dive into these reports the less I like them. 

I'm venting don't even bother replying.  

0
Milen | Product Manager @DX
Telerik team
answered on 14 Mar 2019, 02:46 PM
Hi Steve,

Please use our support system for any challenges you are facing while implementing our reporting solution. We sincerely try to help, not do disappoint our clients.

Accessing the root data scope of the report while evaluating the DocumentName would be helpful. Thank you for bringing this up to our attention. I am logging it in our feedback portal where you and other users can vote for it: https://feedback.telerik.com/reporting/1400524

Regards,
Milen
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
answered on 14 Mar 2019, 03:02 PM
Thanks Milen.
Tags
General Discussions
Asked by
Brad
Top achievements
Rank 2
Answers by
Steve
Telerik team
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
Milen | Product Manager @DX
Telerik team
Share this question
or