Exemple #1
0
 public static void Print(string input, string IPAddress, int PrintCount = 1, bool FormFeed = false)
 {
     for (int i = 0; i < PrintCount; i++)
     {
         PrintService.PrintString(input, IPAddress);
     }
     if (FormFeed)
     {
         CABLabelHelper.FormFeed(IPAddress);
     }
 }
Exemple #2
0
        private void cmdPrint_Click(object sender, EventArgs e)
        {
            string ToPrint = CABLabelHelper.GetLabelData(this.txtTemplate.Text,
                                                         (this.propertyGrid1.SelectedObject as SimpleSubstitutionHolder).GetReplacements());

            ToPrint = CABLabelHelper.GetAdjustedLabel(ToPrint, (float)udX.Value, (float)udY.Value);

            CABLabelHelper.Print(
                ToPrint,
                this.txtIPAddress.Text,
                (int)this.upCopyNumber.Value);

            if (this.chkFormFeed.Checked)
            {
                CABLabelHelper.FormFeed(this.txtIPAddress.Text);
            }
        }