Example #1
0
        public Boolean GenerateCode128c(String targetFileName, LabelPrinter.BarCodeLabel[] barCodeLabelArray, int height, int width, int offsetX, int offsetY, LabelPrinter.BarCodeTextPositions textPos)
        {
            int    i;
            string script;

            ChiasmaDep.IO.FileServer fs;

            script = "";

            for (i = 0; i <= barCodeLabelArray.GetUpperBound(0); i++)
            {
                script = script + this.GenerateBarCode128cSingle(barCodeLabelArray[i].BarCode, height, width, offsetX, offsetY, barCodeLabelArray[i].Text, textPos);
            }

            fs = new ChiasmaDep.IO.FileServer();
            return(fs.SaveString(script, targetFileName));
        }
Example #2
0
        public bool GenerateAlphaNumeric(string targetFileName, string text, string fontName, int magnificationFactor, int offsetX, int offsetY, int copies)
        {
            int    i;
            string script;

            ChiasmaDep.IO.FileServer fs;

            try
            {
                script = "";

                for (i = 1; i <= copies; i++)
                {
                    script = script + this.GenerateAlphaNumericSingle(text, fontName, magnificationFactor, offsetX, offsetY);
                }

                fs = new ChiasmaDep.IO.FileServer();
                return(fs.SaveString(script, targetFileName));
            }
            catch (Exception e)
            {
                throw (e);
            }
        }