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