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

相关推荐
Lucky_Turtle1 天前
【Java Xml】dom4j写入XML
xml·java·python
莫陌尛.1 天前
xml方式bean的配置---实例化bean的方式
xml
六元七角八分3 天前
pom.xml
xml·数据库
郑重其事,鹏程万里3 天前
commons-digester3(XML解析框架)
xml·java
七牛云行业应用3 天前
实战GPT-5:用“XML三明治”和“完美循环”重构你的提示
xml·gpt·重构
跌入凡尘的张公子3 天前
通过hutool生成xml
xml
optimistic_chen3 天前
【Java EE进阶 --- SpringBoot】Mybatis操作数据库(基础二)
xml·数据库·spring boot·笔记·java-ee·mybatis
Lucky_Turtle5 天前
【Java Xml】Apache Commons Digester3解析
xml·java·apache
莫陌尛.5 天前
xml 方式声明式事务案例
xml
m0_728033135 天前
JavaWeb——(web.xml)中的(url-pattern)
xml·前端