【VS】VS2019中使用rdlc报表,生成之前修改XML

一、检查dll版本

复制代码
 1. 先检查引用 microsoft.sqlserver.types.dll  版本设置是否为11.0.0  如果不是,则删除该引用  
 2. 添加引用时选择  管理NuGut程序包 安装microsoft.sqlserver.types  选择安装版本为11.0.0

二、每次修改后要修改rdlc文件才可以打印

需要做如下三点修改:

先打开.rdlc文件,操作方法: 右键点击.rdlc文件,选择"xml(文本)编辑"
修改1. 将开头的第一行2016改成2008:

clike 复制代码
"<Report xmlns="http://schemas.microsoft.com/salserver/reporting/2016/01/reportdefinition'xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"'>
改为:
"<Report xmlns="http://schemas.microsoft.com/salserver/reporting/2008/01/reportdefinition'xmlns:rd="http://schemasmicrosoft.com/SQLServer/reporting/reportdesigner">

修改2 :

删除节点描述的这两行(四句):

clike 复制代码
<ReportSections>
<ReportSection>

和对应的结束节点两行:

clike 复制代码
</ReportSection>
</ReportSections>

修改3:

删除节点:

clike 复制代码
<ReportParametersLayout>
</ReportParametersLayout>
包括中间的所有内容

保存,重新执行ctrl+F5试试

相关推荐
San813_LDD5 小时前
[深度学习] 数据序列化格式对比:以日志级别配置为例
xml·java·前端
摇滚侠9 小时前
Spring 零基础入门到进阶 基于 XML 的声明式事务 71
xml·数据库·spring
摇滚侠1 天前
Spring 零基础入门到进阶 基于 XML 管理 Bean 14-28
xml·数据库·spring
摇滚侠1 天前
Spring 零基础入门到进阶 基于 XML 管理 Bean 29-37
xml·java·数据库·后端·spring·intellij-idea
hashiqimiya2 天前
每日android布局xml文件
android·xml·gitee
2601_961194022 天前
27考研资料|百度网盘|夸克网盘
android·xml·考研·ios·iphone·xcode·webview
许彰午5 天前
在PowerBuilder里手写XML序列化——没有现成库的年代怎么拼报文
xml·linux·服务器
坚果的博客6 天前
鸿蒙PC三方库适配OAT.xml 与 SHA512SUM 解读:开源合规与源码校验
xml·开源·harmonyos
奇树谦6 天前
YAML、XML、JSON、TOML、INI、CSV 全面对比:配置文件和数据交换到底该怎么选?
xml·json
南山丶无梅落7 天前
XXE漏洞
xml·漏洞·xxe·网安