示例#1
0
        private void Form2_Load(object sender, EventArgs e)
        {
            DataSetforCrystalReport piechar = new DataSetforCrystalReport();

            DataSetforCrystalReportTableAdapters.CRbooksTableAdapter ta = new DataSetforCrystalReportTableAdapters.CRbooksTableAdapter();
            ta.Fill(piechar.CRbooks);

            CrystalReport1 cr1 = new CrystalReport1();

            cr1.SetDataSource(piechar);
            crystalReportViewer1.ReportSource = cr1;
        }
示例#2
0
        private void booklistform_Load(object sender, EventArgs e)
        {
            DataSetforCrystalReport booklist = new DataSetforCrystalReport();

            DataSetforCrystalReportTableAdapters.CRbooksTableAdapter ta = new DataSetforCrystalReportTableAdapters.CRbooksTableAdapter();
            ta.Fill(booklist.CRbooks);

            BookList cr1 = new BookList();

            cr1.SetDataSource(booklist);
            crystalReportViewer1.ReportSource = cr1;
        }
示例#3
0
        private void Form3_Load(object sender, EventArgs e)
        {
            DataSetforCrystalReport hh = new DataSetforCrystalReport();

            DataSetforCrystalReportTableAdapters.CRMemberTableAdapter mta = new DataSetforCrystalReportTableAdapters.CRMemberTableAdapter();


            mta.Fill(hh.CRMember);



            memberList rt = new memberList();

            rt.SetDataSource(hh);

            crystalReportViewer1.ReportSource = rt;
        }
示例#4
0
        private void CRformReceipt_Load(object sender, EventArgs e)
        {
            DataSetforCrystalReport td = new DataSetforCrystalReport();

            DataSetforCrystalReportTableAdapters.CRBooksTrainDetailTableAdapter tta  = new DataSetforCrystalReportTableAdapters.CRBooksTrainDetailTableAdapter();
            DataSetforCrystalReportTableAdapters.CRbooksTableAdapter            ta   = new DataSetforCrystalReportTableAdapters.CRbooksTableAdapter();
            DataSetforCrystalReportTableAdapters.CRMemberTableAdapter           mta  = new DataSetforCrystalReportTableAdapters.CRMemberTableAdapter();
            DataSetforCrystalReportTableAdapters.CRBookTransactionTableAdapter  ttta = new DataSetforCrystalReportTableAdapters.CRBookTransactionTableAdapter();

            ta.Fill(td.CRbooks);
            tta.Fill(td.CRBooksTrainDetail);
            mta.Fill(td.CRMember);
            ttta.Fill(td.CRBookTransaction);

            crystalReportViewer1.SelectionFormula = "{CRBookTransaction.TransactionID} =" + transNumber;


            Receipt rp = new Receipt();

            rp.SetDataSource(td);

            crystalReportViewer1.ReportSource = rp;
        }