use Report Parameter or a fild as a report name

2 posts, 0 answers
  1. Mina
    Mina avatar
    1 posts
    Member since:
    Nov 2017

    Posted 11 Dec 2018 Link to this post

    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 ….


  2. Silviya
    Silviya avatar
    422 posts

    Posted 14 Dec 2018 Link to this post

    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 

    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
Back to Top