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

Auto increment number in report

1 Answer 647 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mikkel
Top achievements
Rank 1
Mikkel asked on 31 May 2012, 02:49 PM
Hi,
I would like to add an automatic number (autoincrementing number/field) to the text under each table and picture in my report, like:
Table {autonumber} shows annual income.. etc.

Is there a way I can create a field, or something that I can insert in a htmlTextbox along with the text, that dynimically auto increments a value with each entry? 

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 31 May 2012, 03:06 PM
Hello Mikkel,

The RowNumber(scope) Function returns a running count of all rows in the specified scope. For the report you should specify the name of the report as scope. This would work if you have a single table or picturebox in the detail. You can also utilize the RunningValue(scope, aggregateFunction) in case you need to increment an aggregate. If you aim for something else, then there is no out of the box solution.

Regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Mikkel
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or