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

set dynamic documentname

1 Answer 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ibrahim Imam
Top achievements
Rank 1
Ibrahim Imam asked on 21 Sep 2010, 12:32 PM
hello

i want to set the documentname as default name for download depending on the data i pass to the report.

i tried the following methods but without success:
1. to use a parameter in the constructor (not possible because in the constructor the parameters are not initalized),
2. use the datasource and a property of datasource(also not possible)
3. use a constructor with string parameter but the emtpy constructor is called afterwards and the documentname is still ""
4. set the documentname in prerender or pageload with a public method

how can i set the document name to a variable so the default download name appears correctly?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Sep 2010, 05:07 PM
Hello Ibrahim,

Set the following expression for the DocumentName property in the report designer:

='MySampleReport' + Parameters.MyParameter.Value

where MyParameter is a report parameter.

Greetings,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Ibrahim Imam
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or