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

相关推荐
爱敲键盘的猴子3 小时前
深入理解 Spring IoC -- 基于 XML 的 Bean 配置详解
xml·java·spring
前网易架构师-高司机18 小时前
带标注的羽毛球运动员,裁判,羽毛球识别数据集,识别率84.4%,2879张图,支持yolo,coco json,voc xml,文末有模型训练代码
xml·yolo·json·数据集·羽毛球·裁判
微微1笑抽了筋4 天前
xml中设置透明度
xml
Source.Liu5 天前
【Uppsala】入口模块(lib.rs)
xml·rust
Source.Liu5 天前
【Uppsala】介绍
xml·rust
Wang's Blog5 天前
AI Agent白手起家37: LangChain 输出解析器实战:文本、JSON、XML 与 Pydantic
xml·langchain·json
initialize13065 天前
Oracle数据库 binary XML data类型同步
xml·数据库
御坂嘀喵 白日焰火6 天前
LINQ之路18:LINQ to XML之导航和查询
xml·solr·linq
残月心殇 请珍惜枸6 天前
LINQ之路17:LINQ to XML之X-DOM介绍
xml·solr·linq
x17388062739 天前
XXE外部实体注入
xml·笔记