Пример #1
0
        private bool Print()
        {
            text   = "";
            errMsg = "";
            bool isPrinted = false;

            GetSaleOrderText(so, list);
            IPrintToDevice device = PrintDeviceManager.GetPrintingDevice <BlueToothDeviceHelper> ();

            device.SetCallingActivity(callingActivity);
            device.SetIsPrintCompLogo(iSPrintCompLogo());
            isPrinted = device.StartPrint(text, noOfCopy, ref errMsg);

            return(isPrinted);
        }
Пример #2
0
        private bool Print()
        {
            text   = "";
            errMsg = "";
            bool   isPrinted      = false;
            string pathToDatabase = ((GlobalvarsApp)Application.Context).DATABASE_PATH;
            string userID         = ((GlobalvarsApp)Application.Context).USERID_CODE;

            text = GetInvoiceText_Template("invoiceNTax.vm", pathToDatabase, userID, inv, list);          //Get from template
            if (string.IsNullOrEmpty(text))
            {
                GetInvoiceText(inv, list);                  //take defaul is template is null
            }
            IPrintToDevice device = PrintDeviceManager.GetPrintingDevice <BlueToothDeviceHelper> ();

            device.SetCallingActivity(callingActivity);
            device.SetIsPrintCompLogo(iSPrintCompLogo());
            isPrinted = device.StartPrint(text, noOfCopy, ref errMsg);

            return(isPrinted);
        }