Current year and copyright text help

1 Answer 149 Views
Report Designer (standalone)
Kristine
Top achievements
Rank 1
Kristine asked on 07 May 2021, 10:08 PM

Hello everyone! I am a very new user of Telerik Report Designer. We would like to have the following text show up via a text box on all of our reports.

Copyright 2021

We would like the year to automatically update every year and not have to go back in to the reports to manually change the year. Can someone please help me with this? I have an expression set up right now that just says = 'Copyright 2021'. Thanks!

1 Answer, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 12 May 2021, 11:25 AM

Hello Kristine,

Thank you for sharing details about the customization that you want to achieve in your report. I am happy to help you configure it. Please find more details and the necessary steps below.

  1. Insert a new TextBox in the section of the report, where you want the "Copyright 'year'" to be shown.
  2. Right-click on the TextBox and select "Expression...".
  3. You should see now the Edit Expression window, where you can customize the value of that TextBox.
  4. I used the text "Copyright" as a string and added the year dynamically from the local time on my computer and the final expression looks like this ->  "='Copyright ' + Now().Year" (see attached screenshot).

The value of the Text Box is calculated during runtime or preview and it will be updated when the year changes. Please follow the above steps and test this in your own reports. Of course, if you need further assistance or have follow-up questions, don't hesitate to write back.

Regards,
Plamen Mitrev
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Kristine
Top achievements
Rank 1
commented on 12 May 2021, 06:40 PM

Hi Plamen! The instructions worked perfectly and I have successfully updated our reports. Thank you for your help!
Plamen Mitrev
Telerik team
commented on 13 May 2021, 09:46 AM

I am happy to hear that that everything worked out nicely with your reports! Have a great day ahead.
Tags
Report Designer (standalone)
Asked by
Kristine
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Share this question
or