Changing Document Name for Exporting

5 posts, 0 answers
  1. Brad
    Brad avatar
    9 posts
    Member since:
    Jan 2012

    Posted 14 Dec 2012 Link to this post

    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.


  2. Steve
    Steve avatar
    10940 posts

    Posted 18 Dec 2012 Link to this post

    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,
    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!

  3. SSirica
    SSirica avatar
    94 posts
    Member since:
    Jan 2007

    Posted 08 Mar 2019 Link to this post

    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.  

  4. Milen
    Milen avatar
    181 posts

    Posted 14 Mar 2019 Link to this post

    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:

    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
  5. SSirica
    SSirica avatar
    94 posts
    Member since:
    Jan 2007

    Posted 14 Mar 2019 in reply to Milen Link to this post

    Thanks Milen.
Back to Top