private ReceiptPrintJob GetCustomerFooter(ClaimedPosPrinter printer) { ReceiptPrintJob customerFooter = printer.Receipt.CreateJob(); customerFooter.PrintLine(); customerFooter.PrintLine("______________________"); customerFooter.PrintLine("Tip"); customerFooter.PrintLine(); customerFooter.PrintLine("Customer Copy"); customerFooter.CutPaper(); return(customerFooter); }
// Cut the paper after printing enough blank lines to clear the paper cutter. private void LineFeedAndCutPaper(ReceiptPrintJob job) { if (IsPrinterClaimed()) { for (uint n = 0; n < claimedPrinter.Receipt.LinesToPaperCut; n++) { job.PrintLine(); } if (printer.Capabilities.Receipt.CanCutPaper) { job.CutPaper(); } } }
private ReceiptPrintJob GetMerchantFooter(ClaimedPosPrinter printer) { ReceiptPrintJob merchantFooter = printer.Receipt.CreateJob(); merchantFooter.PrintLine(); merchantFooter.PrintLine("______________________"); merchantFooter.PrintLine("Tip"); merchantFooter.PrintLine(); merchantFooter.PrintLine("______________________"); merchantFooter.PrintLine("Signature"); merchantFooter.PrintLine(); merchantFooter.PrintLine("Merchant Copy"); merchantFooter.CutPaper(); return(merchantFooter); }
// Cut the paper after printing enough blank lines to clear the paper cutter. private void PrintLineFeedAndCutPaper(ReceiptPrintJob job, string receipt) { // Passing a multi-line string to the Print method results in // smoother paper feeding than sending multiple single-line strings // to PrintLine. string feedString = ""; for (uint n = 0; n < rootPage.ClaimedPrinter.Receipt.LinesToPaperCut; n++) { feedString += "\n"; } job.Print(receipt + feedString); if (rootPage.Printer.Capabilities.Receipt.CanCutPaper) { job.CutPaper(); } }