private void button4_Click(object sender, EventArgs e) { Reports.ProfitLossPrint pp = new Reports.ProfitLossPrint(); pp.Purpose = "Fee Collection for Session " + ddlSession.Text; pp.Total = lblTotal.Text; pp.Cash = lblCash.Text; pp.Cheque = lblCheque.Text; pp.Paytm = lblPaytm.Text; pp.Card = lblCard.Text; pp.BankTransfer = lblBankTransfer.Text; pp.Show(); }
private void button1_Click(object sender, EventArgs e) { Reports.ProfitLossPrint pp = new Reports.ProfitLossPrint(); pp.Purpose = "Fee Collection for class " + ddlClass.Text + " between " + dtFrom.Text + " and " + dtTo.Text + ""; pp.Total = lblTotal.Text; pp.Cash = lblCash.Text; pp.Cheque = lblCheque.Text; pp.Paytm = lblPaytm.Text; pp.Card = lblCard.Text; pp.BankTransfer = lblBankTransfer.Text; pp.Show(); }