问题描述
大家好.
有谁知道如何动态移动Crystal报表的第3部分?
请让代码更清晰地为您
CrystalReport1 crp =新的CrystalReport1();
TextObject txtObject;
txtObject =(TextObject)crp.ReportDefinition.ReportObjects ["order"];
txtObject.Text =披萨";
//我想在这里输入代码,这样我就可以在水晶报表查看器中同时显示比萨饼和汉堡.有人可以帮助我吗?
txtObject.Text =汉堡";
crystalReportViewer1.ReportSource = crp;
crystalReportViewer1.Refresh();
问题是crystalreportviewer只显示最后一个汉堡.
希望任何人都能帮助我.谢谢
Hi to all of you.
Anyone know how to move the section 3 of the crystal report dynamically?
ill give the code to be more clearly for you
CrystalReport1 crp = new CrystalReport1();
TextObject txtObject;
txtObject = (TextObject)crp.ReportDefinition.ReportObjects["order"];
txtObject.Text = "pizza";
//I would like a code here so i can display both pizza and burger in the crystal report viewer. anyone can help me?
txtObject.Text = "burger";
crystalReportViewer1.ReportSource = crp;
crystalReportViewer1.Refresh();
the problem is the crystalreportviewer only displays burger, the last one.
Hope anyone can help me. Thanks
推荐答案
//我想要这里的代码,所以我可以在水晶报表查看器中同时显示比萨饼和汉堡.有人可以帮助我吗?
txtObject.Text =汉堡";
crystalReportViewer1.ReportSource = crp;
crystalReportViewer1.Refresh();
问题是crystalreportviewer只显示最后一个汉堡.
//I would like a code here so i can display both pizza and burger in the crystal report viewer. anyone can help me?
txtObject.Text = "burger";
crystalReportViewer1.ReportSource = crp;
crystalReportViewer1.Refresh();
the problem is the crystalreportviewer only displays burger, the last one.
我假设如果将文本替换为汉堡"一词,那么汉堡就是您所得到的.如果以前有披萨",则只需将其擦除即可.您是否要使用+运算符添加到此处的字符串?
I assume that if you replace the text with the word ''burger'', then burger is what you get. If ''pizza'' was there before, you just erased it. Do you want to use the + operator to add to the string in there ?
这篇关于C#Crystal Report-移动第3节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!