本文介绍了动态更改Crystal Reports标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,我有一个Crystal报告,它是根据下拉列表的选择更改生成的...

一切都很完美但我要实现的另一件事是动态报表头(即文本下拉列表应显示在标题中)

任何建议....?

HI friends, I've one Crystal Report which gets generated on selection change of dropdown...
Everything is working perfect but One more thing I want to implement is dynamic Report Header(i.e. Text of dropdown should get displayed in Header)
any suggestions....?

推荐答案

CrystalReport1 sr = new CrystalReport1();

TextObject txtheader = (TextObject)sr.ReportDefinition.ReportObjects["txtheaderobject"];
// "txtheader" is the TextObject, name mentioned on Crystal Report Viewer.
 txtheader.Text = "HeaderText1";//set the header text

//other coding....

crystalReportViewer1.ReportSource = sr;
crystalReportViewer1.Refresh();





谢谢



thanks


这篇关于动态更改Crystal Reports标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-14 07:18