水晶报告问题setdatasource请帮助我 [英] Crystal report Problem setdatasource pls help me

查看:80
本文介绍了水晶报告问题setdatasource请帮助我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i我正在ma项目中创建一个Windows应用程序我正在使用水晶报告现在我遇到了一个问题



  private   void  btnShow_Click( object  sender,EventArgs e)
{
this .Cursor = Cursors.WaitCursor;
objreportclass = new Report.ReportClass();
objdatabaseclass = new DataBaseClass();
objreportclass.FROMDAT = dtpFrom.Text.Trim();
objreportclass.TODAT = dtpTo.Text.Trim();
Table = objreportclass.Getreports();
rptcombinedcollection rr = new rptcombinedcollection();
rr.SetDatasource(表);
crystalReportViewer1.ReportSource = rr;
this .Cursor = Cursors.Arrow;
}



i没有得到行rr.setdatasource中的setdatasource有什么问题请帮帮我



i遇到了我无法写入行rr.setdatasource(表)的问题,意味着我正在写rr。然后setdatasource不在那里帮助我如何获得setdatasource



不一致的可访问性:基类'Collegeapps.Report。 ReportClass'不如类'Collegeapps.Report.rptcombinedcollection'



C#.net windows application developer

解决方案

< blockquote>检查此示例以修复错误

如何修复C#错误:可访问性不一致:基类比类更难访问 [ ^ ]


Hi,
i am creating a windows application in ma project i am using crystal report now i met a problem

private void btnShow_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            objreportclass = new Report.ReportClass();
            objdatabaseclass = new DataBaseClass();
            objreportclass.FROMDAT = dtpFrom.Text.Trim();
            objreportclass.TODAT = dtpTo.Text.Trim();
            Table = objreportclass.Getreports();
            rptcombinedcollection rr = new rptcombinedcollection();
            rr.SetDatasource(Table);
            crystalReportViewer1.ReportSource = rr;
            this.Cursor = Cursors.Arrow;
        }


i don't get the setdatasource in the line rr.setdatasource what is the problem pls help me

i met the problem that i can't write the line rr.setdatasource(table),means am writing rr. then the setdatasource is not in there pls help me how can i get the setdatasource

Inconsistent accessibility: base class 'Collegeapps.Report.ReportClass' is less accessible than class 'Collegeapps.Report.rptcombinedcollection'


C#.net windows application developer

解决方案

Check this sample to fix the error
How to Fix C# Error: Inconsistent accessibility: base class is less accessible than class[^]


这篇关于水晶报告问题setdatasource请帮助我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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