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

相关推荐
IT_Octopus14 小时前
一次由 RestTemplate 引发的 Connection reset:被 XML 截胡的请求体
xml·java·spring boot
风起洛阳@不良使1 天前
spring中xml和注解开发的对比
xml·java·spring
Mikowoo0072 天前
批量汇总XML格式的发票信息
xml·python
逃逸线LOF3 天前
xml文件如何加载properties文件(spring容器加载properties文件)
xml
前网易架构师-高司机5 天前
带标注的山体滑坡塌方数据集数据集,识别率78.1%,974张图,支持yolo,coco json,voc xml,文末有模型训练代码
xml·yolo·json·数据集·自然灾害·山体滑坡
程序媛kelly6 天前
.xml / .jrxml 文件怎么打开?OpenFiles 实测预览、编辑、搜索与 AI 摘要排查流程
xml·人工智能·jrxml
潘潘的嵌入式日记6 天前
改完Keil工程文件被缓存覆盖?——uvprojx编辑的进阶四坑
xml·嵌入式·keil·调试·mdk·工程文件
Full Stack Developme6 天前
Flowable XML标签大全
xml
C137的本贾尼7 天前
第九篇:微服务与分布式——把一个大系统拆成多个小服务
xml·spring boot·后端
JustNow_Man10 天前
【Claude Code】 中给 Python + XML 项目建立可靠验证体系
xml·linux·python