我需要在RDLC报告中动态生成列。该报告显示支付给每位员工的工资分解。
背景
需要动态列创建,因为每个组织都有一个独特的薪资结构,我们已经为客户提供了创建自定义薪资结构的便利。
我正在使用:
在我看来,这篇文章中的第3个选项符合我的目的 - Generate columns dynamically in RDLC
我想做什么:
.xsd
文件一起,我可以看到其他文件的扩展名为.cs
,.Designer.cs
,.xsc
,.xss
。我是否还需要对这些进行更改?.RDLC
文件来创建列和行?.RDLC
文件编写此代码?RDLC
文件?错误:An error occured during local report processing. The definition of the report " in invalid.
The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas. Details: Deserialization failed: The element 'Fields' in namespace 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' has incomplete content. List of possible elements expected: 'Field' in namespace 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'. Line 15, position 9.