C#Crystal Report-移动第3节 [英] c# crystal report - move section3

查看:117
本文介绍了C#Crystal Report-移动第3节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

有谁知道如何动态移动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 ?


感谢您的快速回复.哦,不,我忘记了使用字符串和\ n hoho进行编程的基本知识.是的,几乎或真的回答了我的问题.我可以使用您建议的那个.


但是我想学习或知道的是,我可以使用一个textobject移动水晶报表的section3吗? (例如,textobject的作用类似于添加项目的列表框).

如果已回答,则将此帖子标记为已回答.

再次感谢大家.
Thanks for the fast reply. oh no i forgot the basic of programming using string and \n hoho. yep that nearly or really answered my question. i can use the one you suggested.


but what i want to learn or know is can i move the section3 of a crystal report with using one textobject? (for example is the textobject will act like a listbox like add an items)

if this is answered then ill mark this post already answered.

thanks again to all of you.


这篇关于C#Crystal Report-移动第3节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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