コード例 #1
0
 public object PrintReciept(DataTable Result)
 {
     try
     {
         rptLabSampleOrderDetails objrptTestResults = new rptLabSampleOrderDetails();
         objrptTestResults.SetDataSource(Result);
         return(objrptTestResults);
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #2
0
 public object PrintReciept(DataTable Result, string PrinterName)
 {
     try
     {
         rptLabSampleOrderDetails objrptTestResults = new rptLabSampleOrderDetails();
         objrptTestResults.SetDataSource(Result);
         objrptTestResults.PrintOptions.PrinterName = PrinterName;
         // objrptTestResults.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4;
         objrptTestResults.PrintToPrinter(1, false, 0, 0);
         return(objrptTestResults);
     }
     catch (Exception)
     {
         throw;
     }
 }