Exemple #1
0
        private void PrintRow(Business.Label.Model.AliquotPaperZPLLabel label)
        {
            StringBuilder result  = new StringBuilder();
            int           xOffset = 0;

            result.Append("^XA");
            for (int i = 0; i < 4; i++)
            {
                label.AppendCommands(result, xOffset);
                xOffset += 325;
            }

            result.Append("^XZ");

            Business.Label.Model.ZPLPrinterTCP printer = new ZPLPrinterTCP("10.1.1.21");
            printer.Print(result.ToString());
        }
        private void PrintRow()
        {
            StringBuilder result  = new StringBuilder();
            int           xOffset = 0;

            result.Append("^XA");
            for (int i = 0; i < 4; i++)
            {
                if (this.m_BlockLabelQueue.Count != 0)
                {
                    Business.Label.Model.HistologyBlockPaperZPLLabel label = this.m_BlockLabelQueue.Dequeue();
                    label.AppendCommands(result, xOffset);
                    xOffset += 325;
                }
            }

            result.Append("^XZ");

            Business.Label.Model.ZPLPrinterTCP printer = new ZPLPrinterTCP("10.1.1.21");
            printer.Print(result.ToString());
        }