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

use Report Parameter or a fild as a report name

1 Answer 554 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mina
Top achievements
Rank 1
Mina asked on 11 Dec 2018, 03:26 PM

Hello ,

 

is there any possibility to use the report Parameter or the value of a filed as a report name?

the DocumentName is a fixed Name while i want to have something like date or ….

thanks

1 Answer, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 14 Dec 2018, 11:43 AM
Hello Mina,

I noticed that you have opened a support ticket on the same question, please let me share my answer here as well:

"This could be done using the 
Report.DocumentName property that defines the file name when exporting a report. A String that starts with "=" is interpreted as an expression to evaluate the document name; otherwise it is interpreted as a literal string. The expression cannot contain any data fields.
Note that this property value is not used when exporting from the Standalone report designer, where the report filename will be used instead.

I suggest to check our demo report Product Line Sales that uses an expression to set this property.
The report could be tested online at Product Line Sales Demo. Note that the suggested file name depends on the chosen parameter values.
The report definition could be found in default Telerik Reporting installation folder. For example C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Report\Designer\Examples as a .trdp file.

The alternative CSharp\VB versions of the report definition are available in C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Examples\CSharp, in the project (CSharp/VB).ReportLibrary -> ProductLineSales 
folder."

Regards,
Silviya
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
Tags
General Discussions
Asked by
Mina
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Share this question
or