private void btn_PrintCustomer_Click(object sender, EventArgs e)
 {
     if (orderType == "SPEC")
     {
         Spec_customer rpt = new Spec_customer();
         rpt.RecordSelectionFormula = "{specs_orders1.order_number} = " + "\"" + NewSpectaclesInvoice.OrderNumber + "\"";
         rpt.PrintToPrinter(1, false, 1, 1);
     }
     if (orderType == "LENSE")
     {
         lensesCustomer rpt = new lensesCustomer();
         rpt.RecordSelectionFormula = "{lense_orders1.order_number} = " + "\"" + NewContactLenseInvoice.OrderNumber + "\"";
         rpt.PrintToPrinter(1, false, 1, 1);
     }
 }
 private void btn_viewCustomer_Click(object sender, EventArgs e)
 {
     if (orderType == "SPEC")
     {
         Spec_customer rpt = new Spec_customer();
         rpt.RecordSelectionFormula = "{specs_orders1.order_number} = " + "\"" + NewSpectaclesInvoice.OrderNumber + "\"";
         new reportViewer(rpt).Show();
     }
     if (orderType == "LENSE")
     {
         lensesCustomer rpt = new lensesCustomer();
         rpt.RecordSelectionFormula = "{lense_orders1.order_number} = " + "\"" + NewContactLenseInvoice.OrderNumber + "\"";
         new reportViewer(rpt).Show();
     }
 }