ConnectionBuilder.Build Error Builder not correctly implemented

// Expert user has replied.
J Jessie Lulham 3 years ago
11 1 0

I have a printer set up on my network ... This works as I have printed test pages from my desktop using the printer settings application. However when i attempt to open a connection using ConnectionBuilder.Build I get a "Builder not correctly implemented" error.
There is only 2 lines involved in reproducing this error... note: this exact code used to work
//ip address and port of zebra printer
string ipAddress="10.10.1.150:9100"
Connection connection = ConnectionBuilder.Build("TCP:" + ipAddress);
on a side note we set up this new printer the 610 203 model and a number of things happen:
print spool installed correct, labels installed correct...
1. labels spool, but ink does not print
2. labels appear to spool double (in the settings I ran the run 4 darkness test tag option and it spools 8 tags)... however of course nothing is printed as issue 1.

Please register or login to post a reply

1 Replies

S Steven Si

Are you using Link-OS SDK for PC-.NET or for PC-Java? The syntaxes are slightly different.

// For .NET
string theIpAddress="10.10.1.150";
Connection connection = ConnectionBuilder.Build($"TCP:{theIpAddress}:9100");

// For Java
String theIpAddress="10.10.1.150";
Connection connection = ConnectionBuilder.build("TCP:" + theIpAddress + ":9100");
 

CONTACT
Can’t find what you’re looking for?