I have to print a custom label to a thermal printer. I have everything setup and working with one exception: the rolls of labels have two labels per row, but the C# printing objects can’t seem to see that.
When I query the PageSize information, it tells me that the label is 3.15″ x 0.75″. While this is true for the entire label, it doesn’t give me any information about the size of each individual label, or the spacing between.
Digging into the driver ini files, there is a line that looks like PageSize84 = THT-6-423,3150,2,1500,750,150,125,1. All of the information I need seems to be listed in this line (2 columns, 1500 wide, 750 tall), I just have no idea how to access it from C#. I’ve been scouring the web today, and I’ve had no luck.
I could always hard code the information for now, but this doesn’t future proof the code if manufacturing changes labels.
If you are trying to read an ini file to get the values you can use this.
IniFile.ReadIniValue(“[Tag]”, “Server”, @”C:\my.ini”);