Beispiel #1
0
        private static byte[] generaQR(string str)
        {
            byte[] QR = null;
            try
            {
                GeneratorCdp genqr = new GeneratorCdp();

                QR = genqr.GetImageQrCodeFromString(str);
            }
            catch
            {
                QR = null;
            }
            return(QR);
        }
Beispiel #2
0
        public byte[] GetQrSunatNoteCdp(string str)
        {
            byte[] qr = null;
            try
            {
                /*este metodo es por defecto nota de credito*/
                textpipestr = GetQRtextPipeSeparated("07", str);

                if (textpipestr.Length > 0)
                {
                    GeneratorCdp generatorCdp = new GeneratorCdp();
                    qr = generatorCdp.GetImageQrCodeFromString(textpipestr);
                }
            }
            catch (Exception)
            {
                qr = null;
            }
            return(qr);
        }