2 Replies Latest reply on Oct 11, 2017 9:29 PM by Shrinivas Kulkarni

    Programmatically printing variable fields

    Shrinivas Kulkarni

      Hello,

       

      I've created a label which contains variable fields having Arial font. I want to print this label with variable data using c#. How can I do it?

      Thanks,

      Shrinivas

        • Re: Programmatically printing variable fields
          Robin West

          Hi Shrinivas,

          Are you asking how to create a variable field label?  Are you using a label design tool?

          Are you asking how to use the Arial font with variable fields in a page description language like ZPL?

          Or are you asking how to communicate/print to the printer with C#?

           

          You need to use page description language to truly have a variable field label. Label design tools are available to help.  If you want to have Arial font for your variable fields, you need to license, convert, and install it on the printer.  Sending the print data to the printer using C# you need to think about the OS you are using.  Then you can find out methods to send raw data via C# code on that OS.

            • Re: Programmatically printing variable fields
              Shrinivas Kulkarni

              Hello Robin West,

               

              Thanks for reply. I have already designed the label in designer. I have used Arial font for all the fields. This label, I want to print using my program developed in c#, Windows OS (My application tests the Device Under Test and if it is tested OK, application generates the Label using Zebra printer). I have created the PRN file of label designed in designer and this file I want to print. If I use Zebra fonts, I can read this file easily and replace the fields that I want to print (e.g. Serial Number, Date etc.). But if I use Arial font, the file is not readable means I can not replace the fields that I want to print, as it is graphics. Is there any way to read this and replace with appropriate data and print?

               

              Thanks

              Shrinivas