在rdlc报告中显示序列号 [英] Display a serial number in rdlc report

查看:173
本文介绍了在rdlc报告中显示序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我在visual studio2010中使用ASP.NET在reportviewer中开发了一个报告。



我想要在报告中显示序列号,但我没有使用tabix,矩阵.........



我只是拖动rdlc中的字段,我想要序列号在rdlc报告中显示..







请回复编码。







谢谢,

Hi
I have developed a report in reportviewer using ASP.NET in visual studio2010.

I want to display serial number in report but i am not using tabix,matrix.........

just i drag the fields in rdlc , i want serial number to display in rdlc report..



please reply with coding.



Thanks,

推荐答案

包含RowNumber的表达式函数,当在数据区域内的文本框中使用时,显示表达式出现的文本框的每个实例的行号。此函数可用于对表中的行进行编号。

尝试使用RowNumber(Scope)函数显示行号。如果范围为空,则RowNumber(Nothing)提供最外层数据区域中行的运行计数。

另请参阅http://msdn2.microsoft.com/en-us/library/ms251668( VS.80).aspx
An expression containing the RowNumber function, when used in a text box within a data region, displays the row number for each instance of the text box in which the expression appears. This function can be useful to number rows in a table.
Try using RowNumber(Scope) function to display the row numbers. If scope is nothing then RowNumber(Nothing) provides the running count of rows in the outermost data region.
Also Refer to http://msdn2.microsoft.com/en-us/library/ms251668(VS.80).aspx


在你的rdlc报告中添加一个你想要输入序列号的列。

现在编写Expression RowNumber(datasource name )喜欢

RowNumber(DataSource1)
Add a column in your rdlc report where you want to put serial number.
Now write the Expression RowNumber("datasource name") like
RowNumber("DataSource1")


演示教程..



HTTP://www.c-sharpcorner。 com / UploadFile / a20beb / how-to-show-the-serial-in-reports-in-automatically-using / [ ^ ]
Demo Tutorial..

http://www.c-sharpcorner.com/UploadFile/a20beb/how-to-show-the-serial-number-in-reports-automatically-using/[^]


这篇关于在rdlc报告中显示序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆