How to make serial No. in PDF report?

I want to make serial No. automatically in PDF report as existing data
like this screen shoot:


There is any code to make serial No.?

Hi, you can do this in your query for example. This is for Mysql

select name,
      @rownum := @rownum + 1 as row_number
from your_table
cross join (select @rownum := 0) r
order by name
2 Likes

Thank you very much for your response, But It shows me this error

Many thanks .
Itried it again, and It worked very good.