1

I need to write some code that prints labels using Toshiba TEC TPCL language. I have language documentation and I found a few SO topics, but everything I found is focused on the language itself, not on how I should communicate with the printer.

I mean, the printer can be connected through serial, usb or network. If the printer is connected through serial, I think I simply need to open the serial port and start sending commands - but with what parameters? For lan maybe I could open a tcp connection to port 9100 and send commands, although I'm not so sure about this. For usb (the connection method I'm actually interested in) I have no clues.

I have some experience with Godex printers, where a dll is provided by Godex that takes care of actual communication, you simply have to call an "open connection" function with the desired connection method (serial, lan, usb) as a parameter.

With Toshiba I can't find anything like that, and I also can't find a usage example that shows the basic communication setup process.

I know that Toshiba provides BarTender (label designing software) that comes with an SDK, but I prefer not to use it, and go with pure TPCL.

Does anyone have experience on this?

Thank you!

1

4 Answers 4

-1

You need to use TTEC's "BCP Print for .NET". Tt includes BCPControl.dll

I think that the best idea is to contact your local TTEC office to get their help.

Rafal

Sign up to request clarification or add additional context in comments.

2 Comments

Can you please elaborate a bit more? I searched for "BCP Print for .NET" or "BCPControl.dll" on Google but I didn't find anything...
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
-1

Once label script is saved in the file, run from cmd box: copy filename.tcpl LPT1 /b where LPT1 is mapped to windows TEC printer.

1 Comment

Question is not on "how to send to the printer", but on "What to send to the printer"
-1

I suggest you could generate a text file with the right commands and send it to the printer using a rawprint utility. You can find several rawprint utilities, but you can try this one: https://download.cnet.com/rawprint-64-bit/3000-2088_4-75710381.html

In this case, you could send a file to the printer as follows:

rawprint /f commands_file.txt /pr name_of_the_printer

I have been using this technique for a wide range of printers for years, like POS printers and label printers, with no problem.

1 Comment

Question is not on "how to send to the printer", but on "What to send to the printer"
-1

All I do is use a Generic Text Printer Driver on Windows. Mine are all networked, so just create a generic network port and use TCP 9100, then create the file in a standard Text Editor and select file, Print.

1 Comment

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.