예제 #1
0
        public Sticker(StickersheetTemplate template, object barcodevalue = null, string text1 = "", string text2 = "", string text3 = "")
        {
            Template = template;

            // Setup Properties from Template

            MarginTop  = template.StickerMarginTop;
            MarginLeft = template.StickerMarginLeft;

            Width  = template.StickerWidth;
            Height = template.StickerHeight;

            HTextSpacing = template.HStickerSpacing;

            BarcodeHeight = template.BarcodeHeight;
            BarcodeWidth  = template.BarcodeWidth;

            Font = new Bytescout.PDF.Font(template.FontName, template.FontSize);

            BarcodeValue = barcodevalue.ToString() ?? DateTime.Now.ToString();
            Text1        = text1;
            Text2        = text2;
            Text3        = text3;

            GenerateBarcodeImage();

            #endregion
        }
예제 #2
0
        public Stickersheet(StickersheetTemplate template)
        {
            Template = template;

            // Setup Properties from Template
            MarginLeft      = template.SheetMarginLeft;
            MarginTop       = template.SheetMarginTop;
            Rows            = template.Rows;
            Columns         = template.Columns;
            HStickerSpacing = template.HStickerSpacing;
            VStickerSpacing = template.VStickerSpacing;
        }