2016-03-14 1 views
0

enter image description here
Ce problème me rend fou.
J'utiliserapport de cristal imprime la page blanche à la fin

EPSON TM-T88V imprimante

à imprimer, plus tôt, il était bien une nuit OS mis à jour à WIN10 et il est allé tous fous. J'ai un point de vente pour un restaurant, donc si j'imprime une facture pour une table pariculaire pour la première fois, il imprime avec une page vierge après le projet de loi, donc c'est trop long. Mais encore une fois je l'imprime parfaitement. Appelé EPSON et a eu quelques problèmes avec la page de test de sorte qu'ils ont été corrigés, car le support était limité à la seule page de test. Quand j'ai essayé sur POS, c'est pareil.
Heres mon code pour l'impression

private void BillReceipt_Load(object sender, EventArgs e) 
    { 
     try 
     { 

      string sqlqry = "Select tb.TableNo,Pax,WaiterName,ItemCode,ItemName,Quantity,Amount,tb.BillNo,OrderType,RoundOffAmount as RoundOff, Discount,Gratuity,dues,Date1,tb.Time,ModeOfPayment,CardNo,CardHolderName,BankName,TotalAmount,VAT,ServiceTax,AmountPaid,Comments as comment,CustomerName,offeramount,DeliveryTax,Phoneno,Address From tblOrder o,tblBilling tb Where [email protected] and tb.KOTNo=o.KOTNo and o.KOTcancel='False'and o.Quantity>'0'and KOTCancel='False'"; 
      SqlCommand cmd = new SqlCommand(sqlqry, connectionclass.con); 
      cmd.Parameters.AddWithValue("@kotno", NewOrderBL.KOTNo); 
      SqlDataAdapter adapter = new SqlDataAdapter(cmd); 
      DataSet3 ds = new DataSet3(); 
      adapter.Fill(ds, "Billing"); 
      if (ds.Tables["Billing"].Rows.Count == 0) 
      { 
       MessageBox.Show("No Data Found", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); 
      } 
      if (deliverybl.order == "Delivery") 
      { 
       PrintBillDelivery printbilldelivery = new PrintBillDelivery(); 
       printbilldelivery.SetDataSource(ds); 
       crystalReportViewer1.ReportSource = printbilldelivery; 
       System.Drawing.Printing.PrintDocument printDocument = new System.Drawing.Printing.PrintDocument(); 
       printbilldelivery.PrintOptions.PrinterName = printDocument.PrinterSettings.PrinterName; 

       printbilldelivery.PrintOptions.PrinterName = "EPSON TM-T88V Receipt";//for JAPNA PC 
       printbilldelivery.PrintToPrinter(1, false, 0, 0); 

      } 
      else 
      { 
       PrintBillReceipt2 printbillreceipt2 = new PrintBillReceipt2(); 
       printbillreceipt2.SetDataSource(ds); 
       crystalReportViewer1.ReportSource = printbillreceipt2; 
       System.Drawing.Printing.PrintDocument printDocument = new System.Drawing.Printing.PrintDocument(); 
       printbillreceipt2.PrintOptions.PrinterName = printDocument.PrinterSettings.PrinterName; 

       printbillreceipt2.PrintOptions.PrinterName = "EPSON TM-T88V Receipt";//for JAPNA PC 
       printbillreceipt2.PrintToPrinter(1, false, 0, 0); 

      } 


      ////////////////////////////////////////////////// 
     } 
     catch (Exception ex) 
     { 
      MessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); 
     } 
     finally { connectionclass.disconnect(); } 
     NewOrderBL.KOTNo = string.Empty; 
     onlinebl.crystalreport = ""; 
     this.DialogResult = DialogResult.OK; 
     // this.Close(); 
    } 

Si vous avez besoin d'autres informations ne me laissez know.So s'il vous plaît aider. Merci

Répondre

0


J'ai été capable de résoudre le problème que c'était à cause du WIN 10, une fois que j'ai pu revenir à WIN 8 cela a fonctionné comme avant.
Raison Je pense que la version de rapport de cristal 13.x n'est pas compatible avec WIN 10 (pas sûr cependant)