public void ButtonPrint()
        {
            if (cmbProjectList.SelectedIndex == -1)
            {
                MessageBox.Show("Please select a project !!", "Warning", MessageBoxButtons.OK);
                return;
            }
            selectionFormula = "";
            if (cmbProjectList.Text != "All")
            {
                selectionFormula = " {ProjectMaster.projID} = " + cmbProjectList.SelectedValue + "";
            }

            isLetterHead = chkLetterHead.Checked;

            if (rbtDetailReport.Checked)
            {
                rptType = "ProjectDetails";
                frm_ReportViewer vwr = new frm_ReportViewer(rptType, selectionFormula, isLetterHead);
                vwr.Show();
            }
            else
            {
                rptType        = "ProjectSummary";
                landDetails    = chkLandInfo.Checked;
                costOfPurchase = chkCostOfPurchase.Checked;
                dev            = chkDevelopment.Checked;
                travel         = chkTravelling.Checked;
                survy          = chkSurway.Checked;
                util           = chkUtil.Checked;
                adv            = chkAdvertising.Checked;
                frm_ReportViewer vwr = new frm_ReportViewer(rptType, selectionFormula, landDetails, costOfPurchase, dev, travel, survy, util, adv, isLetterHead);
                vwr.Show();
            }
        }
Ejemplo n.º 2
0
        public void ButtonPrint()
        {
            selectionFormula = " {RecieptsMaster.reciptID}=" + txt_ReceiptID.Text + "";
            frm_ReportViewer rptVwr = new frm_ReportViewer("Reciept", selectionFormula);

            rptVwr.Show();
        }
        public void ButtonPrint()
        {
            selectionFormula = "";
            if (cmbCustomer.Text != "All")
            {
                selectionFormula = "{Customer.cusID} = " + cmbCustomer.SelectedValue + "";
            }
            frm_ReportViewer frm = new frm_ReportViewer("CustomerDetails", selectionFormula);

            frm.Show();
        }