How to change the dpi from 200 to 300 through ZPL?
I want to use the same ZPL code on printers S4M (200 dpi) and ZT230 (300 dpi).
I think it is not possible to use the same label for 200 and 300 dpi, dpi stands for dots per inch, all you have to do is make the conversion for example
Rectangle command is
^FO0,0^GB700,0,3^FS
//that means
^startField,x,y^GBwidth,height,lineWeight^endField
In this case width
= 700 dots, this means that for a 300dpi printer this will take 2.3 inches and for a 200dpi printer 3.5 inches, so if you want same length in both pritners you can do
700/300 = 2.3, so x/200 = 2.3 then x = 200 * 2.3 , x = 460
This means that if you want a line length of 2.3in, using a 300dpi printer width
parameter should be 700 and for a 200dpi printer 460.
Hope this helps
Here is an emulator that might help you