private void btnPrint_Click(object sender, EventArgs e)
        {
            RptGroceryRescue clsCreateGRReport;
            string           saveAs = "";

            if (pnlEditDaily.Visible == true)
            {
                clsCreateGRReport = new RptGroceryRescue(dgvMonthReceipts);
                saveAs            = CCFBPrefs.ReportsSavePath + "GroceryRescue_" + cboReportMonth.SelectedItem
                                    + "_" + cboYear.SelectedItem + "_" + ((parmType)cboStore.SelectedItem).LongName + "_";

                foreach (RadioButton rdo in grpWeek.Controls.OfType <RadioButton>())
                {
                    if (rdo.Checked == true)
                    {
                        saveAs += rdo.Name.Replace("rdo", "");
                    }
                }

                saveAs += ".xls";
            }
            else
            {
                clsCreateGRReport = new RptGroceryRescue(dgvMonthTotals);
                saveAs            = CCFBPrefs.ReportsSavePath + "GroceryRescue_" + cboReportMonth.SelectedItem
                                    + "_" + cboYear.SelectedItem + "_" + ((parmType)cboStore.SelectedItem).LongName + "_MontlyTotals.xls";
            }

            clsCreateGRReport.createReport(saveAs, CCFBGlobal.fb3TemplatesPath + "GroceryRescue.xls",
                                           ((parmType)cboStore.SelectedItem).LongName, isGroceryRescue);
        }
        private void btnPrint_Click(object sender, EventArgs e)
        {
            RptGroceryRescue clsCreateGRReport;
            string           saveAs    = "";
            string           rptType   = "";
            string           rptlabel  = "";
            string           rptPeriod = "";

            if (isGroceryRescue == true)
            {
                rptType = "Grocery Rescue";
            }
            else
            {
                rptType = "Food Receipts";
            }

            if (pnlEditDaily.Visible == true)
            {
                clsCreateGRReport = new RptGroceryRescue(dgvDailyReceipts);
                saveAs            = CCFBPrefs.ReportsSavePath + "GroceryRescue_" + cboReportMonth.SelectedItem
                                    + "_" + cboYear.SelectedItem + "_" + ((parmType)cboStore.SelectedItem).LongName + "_";

                foreach (RadioButton rdo in grpWeek.Controls.OfType <RadioButton>())
                {
                    if (rdo.Checked == true)
                    {
                        saveAs   += rdo.Text;
                        rptPeriod = Convert.ToDateTime(dgvDailyReceipts.Columns[1].Tag).ToShortDateString() + " - "
                                    + Convert.ToDateTime(dgvDailyReceipts.Columns[7].Tag).ToShortDateString();
                        rptlabel = rptType + " For " + rdo.Text + ":";
                        break;
                    }
                }

                saveAs += ".xls";
            }
            else
            {
                rptlabel          = rptType + "Month Totals For:";
                rptPeriod         = cboReportMonth.SelectedItem + " " + cboYear.SelectedItem;
                clsCreateGRReport = new RptGroceryRescue(dgvMonthTotals);
                saveAs            = CCFBPrefs.ReportsSavePath + "GroceryRescue_" + cboReportMonth.SelectedItem
                                    + "_" + cboYear.SelectedItem + "_" + ((parmType)cboStore.SelectedItem).LongName + "_MontlyTotals.xls";
            }

            clsCreateGRReport.createReport(saveAs, CCFBGlobal.fb3TemplatesPath + "GroceryRescue.xls",
                                           ((parmType)cboStore.SelectedItem).LongName, isGroceryRescue, rptlabel, rptPeriod);
        }