在c#中导出后,rdlc头中的报表项不会显示在excel中 [英] report items in rdlc header wont display in excel after exporting in c#

查看:157
本文介绍了在c#中导出后,rdlc头中的报表项不会显示在excel中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用rdlc报告,

我的报告页面标题有一个文本框,表达式为'= reportitems!textbox9.Value'

其中textbox9是隐藏文本body部分中的框。(FieldItems不能放在页眉中,所以我用它作为报表项)。在报表查看器中查看报表或以PDF格式导出报表时,所有数据都会正确显示。导出到Excel时,不会显示标题部分中的报表项目,所有其他字段项目都会显示。

plz share ur tips和我有价值的建议。

I am using rdlc reports,
my reports page header has a text box having expression '=reportitems!textbox9.Value'
On which textbox9 is a hidden text box in the body section.(FieldItems cannot be placed in page header so i used it as a report item). All the data appears correctly when the report is viewed in report viewer or exported in PDF .while exporting to excel it wont display the report items in header section all other field items are displayed.
plz share ur tips and valuable suggestions.

推荐答案

我当然不会轻视你的问题,但我确定标题正在导出,只是excel默认不显示它们。看是否点击查看 - >页眉和页脚。您还可以通过页面预览来查看页眉和页脚。



希望有所帮助!

SS
I certainly am not trivializing your question, but I'm sure the header's are being exported, it's just that excel does not show them by default. See if clicking View -> Headers and Footers . You could also view the header and footer by doing a Page Preview

Hope that helps!
SS


我已将textbox9的隐藏属性更改为false并将其大小更改为0,0。现在它正在工作。谢谢你的努力; - )
i have changed textbox9's hidden property to false and changed its size to 0,0.Now its working .thanks for ur efforts ;-)


这篇关于在c#中导出后,rdlc头中的报表项不会显示在excel中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆