Esempio n. 1
0
        private void btnViewCenter_Click(object sender, EventArgs e)
        {
            frmReportViewer frm = new frmReportViewer();
            frm.Location = new Point(this.Location.X + 170, this.Location.Y + 65);
            frm.ShowDialog();


            //ECenter d = new ECenter();
            //DataSet ds = d.GetList();
            //rptCenters rpt = new rptCenters();
            
            //rpt.SetDataSource(ds.Tables[0]);
            //frmReportViewer frm = new frmReportViewer(rpt);
            //frm.Location = new Point(this.Location.X + 103, this.Location.Y + 65);
            //frm.ShowDialog();
        }
Esempio n. 2
0
        private void btnSavePrint_Click(object sender, EventArgs e)
        {
            if (!IsValid())
            {
                return;
            }
            if (save())
            {
                MessageBox.Show("Transaction Saved Successfully", "Saved", MessageBoxButtons.OK, MessageBoxIcon.Information);

                frmReportViewer frm = new frmReportViewer();
                frm.receiptno = rforprint;
                //this.Close();
                frm.Location = new Point(this.Location.X - 110, this.Location.Y - 70);
                frm.ShowDialog();
            }
            else
            {
                MessageBox.Show("Problems in Saving Transaction", "Not Saved", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            
        }