Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        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);
        }