Esempio n. 1
0
        //Mock up template data
        public QRTemplateDocument buildMockUpTemplate()
        {
            QRTemplateDocument template = new QRTemplateDocument();
            Label qrLabel_1             = new Label();
            Label qrLabel_2             = new Label();
            Label qrLabel_3             = new Label();

            qrLabel_1.Width  = 288;
            qrLabel_1.Height = 192;
            qrLabel_1.X      = 20;
            qrLabel_1.Y      = 20;

            qrLabel_1.Items.Add(new StaticText(5, -20, 1, 15, 124, 90, "QR Title"));
            qrLabel_1.Items.Add(new DynamicText(200, 50, 2, 15, 124, 0, "QRNumber"));
            qrLabel_1.Items.Add(new XMLLayoutClassTest.Image(160, 100, 2, 46, 100, 0.0, "JnJLogo.png", "ffffff"));
            qrLabel_1.Items.Add(new QRCode(20, 10, 4, 15, 124, 0.0, "QRImage", "ffffff"));

            qrLabel_2.Width  = 288;
            qrLabel_2.Height = 192;
            qrLabel_2.X      = 20;
            qrLabel_2.Y      = 240;

            qrLabel_2.Items.Add(new StaticText(160, 10, 1, 15, 124, 0.0, "QR Title"));
            qrLabel_2.Items.Add(new DynamicText(200, 50, 2, 15, 124, 0, "QRNumber"));
            qrLabel_2.Items.Add(new XMLLayoutClassTest.Image(160, 100, 3, 46, 100, 0.0, "JnJLogo.png", "ffffff"));
            qrLabel_2.Items.Add(new QRCode(20, 10, 4, 15, 124, 0.0, "QRImage", "ffffff"));

            qrLabel_3.Width  = 288;
            qrLabel_3.Height = 192;
            qrLabel_3.X      = 20;
            qrLabel_3.Y      = 460;

            qrLabel_3.Items.Add(new StaticText(180, 10, 1, 15, 124, 0.0, "QR Title"));
            qrLabel_3.Items.Add(new DynamicText(200, 70, 2, 15, 124, 0, "QRNumber"));
            qrLabel_3.Items.Add(new XMLLayoutClassTest.Image(160, 100, 3, 46, 100, 0.0, "JnJLogo.png", "ffffff"));
            qrLabel_3.Items.Add(new QRCode(20, 10, 4, 15, 124, 0.0, "QRImage", "ffffff"));

            template.Labels.Add(qrLabel_1);
            template.Labels.Add(qrLabel_2);
            template.Labels.Add(qrLabel_3);
            return(template);
        }
Esempio n. 2
0
 public QRPageCreator(QRPrintInputData[] qrpd, QRTemplateDocument template)
 {
     this.qrPrintData = qrpd;
     this.template    = template;
 }