Example #1
0
        /// <summary>
        /// Saves html with barcode.
        /// </summary>
        /// <param name="htmlPath"></param>
        /// <param name="barcodePositionTop"></param>
        /// <param name="barcodePositionLeft"></param>
        public void SaveHTMLWithBarcode(string htmlPath, int barcodePositionTop, int barcodePositionLeft)
        {
            HtmlGenerator htmlGenerator = new HtmlGenerator();

            htmlGenerator.InsertCode(GetBarcode(ImageFormat.Png), barcodePositionLeft, barcodePositionTop);
            htmlGenerator.Save(htmlPath);
        }
Example #2
0
        /// <summary>
        /// Gets html with barcode source.
        /// </summary>
        /// <param name="barcodePositionTop"></param>
        /// <param name="barcodePositionLeft"></param>
        /// <returns></returns>
        public string GetHTMLWithBarcode(int barcodePositionTop, int barcodePositionLeft)
        {
            HtmlGenerator htmlGenerator = new HtmlGenerator();

            htmlGenerator.InsertCode(GetBarcode(ImageFormat.Png), barcodePositionLeft, barcodePositionTop);
            return(htmlGenerator.GetHTML());
        }
Example #3
0
        /// <summary>
        /// Saves Html file with specified barcode image.
        /// </summary>
        /// <param name="htmlPath"></param>
        /// <param name="barcodeImageSrc"></param>
        /// <param name="barcodePositionTop"></param>
        /// <param name="barcodePositionLeft"></param>
        public void SaveHTMLWithBarcode(string htmlPath, string barcodeImageSrc, int barcodePositionTop, int barcodePositionLeft)
        {
            HtmlGenerator htmlGenerator = new HtmlGenerator();

            htmlGenerator.InsertCode(barcodeImageSrc, barcodePositionLeft, barcodePositionTop);
            htmlGenerator.Save(htmlPath);
        }