【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试试

相关推荐
科雷软件测试8 小时前
推荐几个常用的校验yaml、json、xml、md等多种文件格式的在线网站
xml·html·md·yaml
susu108301891111 小时前
maven-3.9.12的conf配置settings.xml
xml·java·maven
odoo中国2 天前
如何在 Odoo 中从 XML 文件调用函数
xml·odoo·odoo开发·调用函数
阿凉07023 天前
新版本JLink安装目录中缺失JLinkDevices.xml添加方法
xml·嵌入式硬件
Knight_AL3 天前
从 QueryWrapper 到 XML:一次「报表 SQL」的重构实践
xml·sql·重构
智航GIS4 天前
9.5 XML 处理指南
xml·前端·python
像风一样的男人@5 天前
python --yolo混合文件xml和img整理
xml·python·yolo
飞舞花下10 天前
MAVEN私有仓库配置-Nexus私有仓库
xml·java·maven
好大的月亮10 天前
mybatis在xml中使用OGNL取值简述
xml·mybatis
草莓熊Lotso10 天前
Qt 入门核心指南:从框架认知到环境搭建 + Qt Creator 实战
xml·开发语言·网络·c++·人工智能·qt·页面