private bool Print() { text = ""; errMsg = ""; bool isPrinted = false; TCPDotMatrixHelper device = new TCPDotMatrixHelper(); device.SetCallingActivity (callingActivity); device.SetIsPrintCompLogo (iSPrintCompLogo ()); bool isReady = device.StartPrint (text, noOfCopy, ref errMsg); if (isReady) { isPrinted = PrintCNNote (device); device.Close (); } return isPrinted; }
private bool Print() { text = ""; errMsg = ""; bool isPrinted = false; TCPDotMatrixHelper device = new TCPDotMatrixHelper(); device.SetCallingActivity(callingActivity); device.SetIsPrintCompLogo(iSPrintCompLogo()); bool isReady = device.StartPrint(text, noOfCopy, ref errMsg); if (isReady) { isPrinted = PrintInvoice(device); device.Close(); } return(isPrinted); }
internal override bool Print() { text = ""; errMsg = ""; bool isPrinted = false; text = GetInvoiceSumm (printDate1, printDate2); TCPDotMatrixHelper device = new TCPDotMatrixHelper(); //IPrintToDevice device = PrintDeviceManager.GetPrintingDevice<BlueToothDeviceHelper> (); device.SetCallingActivity (callingActivity); bool isReady = device.StartPrint (text, noOfCopy, ref errMsg); if (isReady) { byte[] charfont = Encoding.ASCII.GetBytes(text); device.mmOutputStream.Write(charfont, 0, charfont.Length); device.Close (); } return isPrinted; }
internal override bool Print() { text = ""; errMsg = ""; bool isPrinted = false; text = GetInvoiceSumm(printDate1, printDate2); TCPDotMatrixHelper device = new TCPDotMatrixHelper(); //IPrintToDevice device = PrintDeviceManager.GetPrintingDevice<BlueToothDeviceHelper> (); device.SetCallingActivity(callingActivity); bool isReady = device.StartPrint(text, noOfCopy, ref errMsg); if (isReady) { byte[] charfont = Encoding.ASCII.GetBytes(text); device.mmOutputStream.Write(charfont, 0, charfont.Length); device.Close(); } return(isPrinted); }