Beispiel #1
0
 private void goPrint()
 {
     if (!(comboReports.Text == ""))
     {
         string myDate;
         string myStore = "Agriculturist Multipurpose Cooperative" + Environment.NewLine + "113 Pichon Street, Barangay 39-D, Poblacion, Davao City, Davao del Sur" + Environment.NewLine + "(082) 227 5240" + Environment.NewLine;
         if (txtDateFrom.Text == txtDateTo.Text)
         {
             myDate = "Daily Report: " + txtDateFrom;
         }
         else
         {
             myDate = "From " + txtDateFrom.Text + " To " + txtDateTo.Text;
         }
         ClsPrint printIT = new ClsPrint(datagridTableChild, myStore + comboReports.Text + Environment.NewLine + myDate);
         printIT.PrintForm();
     }
 }
        private void printdgv_Click(object sender, EventArgs e)
        {
            ClsPrint t = new ClsPrint(dataGridView4, "Totals");

            t.PrintForm();
        }