发送sql中的所有行以进行打印

时间:2019-07-24 09:18:08

标签: c# linq stimulsoft

一开始我很抱歉,因为我正在使用Google翻译器翻译我的问题。 但是我的问题是,我将使用C#2010和Linq技术以及StimulSoft Report软件来打印报告。我的报告位于New + Label报告的stimulsoft报告环境中。运行运行失败的代码时,仅从数据库中选择了第一个人,其他人则未添加到列表中。我的问题是我该如何派遣银行内的所有人进行打印。

DBLinqDataContext db = new DBLinqDataContext();
        private void button1_Click(object sender, EventArgs e)
        {
            var SelectStudent = from row in db.InfoStudents
                       select row;
                StiReport report = new StiReport();
                report.Load(Application.StartupPath + "\\ReportPerson.mrt");
                report.Compile();
                report.RegBusinessObject("MyPerson", SelectStudent);
                report.Show();
        }

enter image description here

0 个答案:

没有答案