Click here to Skip to main content
15,888,297 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello peeps,
I m working on winform app(c#) I want to Print barcode on barcode printer
now m testing on TSC TTP 244 pro printer using its DLL.
I want to print on Sheet which has two columns .Help me.
i want print it side by side .

I tried
-----------------------------------

==========

but its not working .
is there any another way to do this task???

What I have tried:

TSCLIB_DLL.openport("TSC TTP-244 Pro"); //Open specified printer driver
TSCLIB_DLL.setup("50.8", "50.8", "4", "8", "1", "0", "0"); //Setup the media size and sensor type info
TSCLIB_DLL.clearbuffer();

TSCLIB_DLL.barcode(Convert.ToString(TSCLBX), "50", "128", "50", "0", "0", "2", "2", "*" + stringToPrint + "*");
TSCLIB_DLL.printerfont(Convert.ToString(TSCLBX), "110", "3", "0", "1", "1", stringToPrint1); //Drawing printer font
TSCLIB_DLL.windowsfont(TSCLBX, 130, 24, 0, 0, 0, "Arial", "ITEM :" + ItemNameBar); //Draw windows font
TSCLIB_DLL.windowsfont(TSCLBX, 150, 24, 0, 0, 0, "Arial", "PACKING :" + Convert.ToString(packing1Bar));
TSCLIB_DLL.windowsfont(TSCLBX, 170, 24, 0, 0, 0, "Arial", "RATE :" + Convert.ToString(SalesRate));
TSCLBX = TSCLBX + 100;
TSCLIB_DLL.barcode(Convert.ToString(TSCLBX), "50", "128", "50", "0", "0", "2", "2", "*" + stringToPrint + "*");
TSCLIB_DLL.printerfont(Convert.ToString(TSCLBX), "110", "3", "0", "1", "1", stringToPrint1); //Drawing printer font
TSCLIB_DLL.windowsfont(TSCLBX, 130, 24, 0, 0, 0, "Arial", "ITEM :" + ItemNameBar); //Draw windows font
TSCLIB_DLL.windowsfont(TSCLBX, 150, 24, 0, 0, 0, "Arial", "PACKING :" + Convert.ToString(packing1Bar));
TSCLIB_DLL.windowsfont(TSCLBX, 170, 24, 0, 0, 0, "Arial", "RATE :" + Convert.ToString(SalesRate)); // TSCLIB_DLL.downloadpcx("UL.PCX", "UL.PCX"); //Download PCX file into printer
// TSCLIB_DLL.downloadpcx("UL.PCX", "UL.PCX"); //Download PCX file into printer
TSCLIB_DLL.printlabel("1", "1"); //Print labels
TSCLIB_DLL.closeport();
Posted
Updated 28-Dec-18 7:25am
Comments
Member 11418043 11-Oct-17 16:03pm    
Did you find any solution ?
Mr. Charlie 25-Nov-17 23:13pm    
I am also searching for solution, please post answer if your problem is solved
saeid mohammad hashem 28-Dec-18 8:35am    
I'm also looking for solution, if you have any correct answer please post the sample code.
my tsc label printer is "TSC TTP-244ME Plus"

I'm also looking for solution, if you have any correct answer please post the sample code.
my tsc label printer is
"TSC TTP-244ME Plus"
 
Share this answer
 
Comments
[no name] 28-Dec-18 8:28am    
Depends very much of the type of Barcode... Some of Barcode you can simply "consume" as a font, some of them you Need to make some checksum calculations and after that consuming by the help of a font and last but not least, with some of them you have no Chance to consume it as a font, your really Need to create the graphics ;)
Use these - 7 Free Barcode Fonts · 1001 Fonts[^]

They just work - assuming you can select the font you wish.
Also - make SURE you learn the rules for the barcode you wish to use.
For example, they typically have a start and stop character along with the content.

Also, remember that there are many barcode set which were designed for different purposes. You may have to find a specific one if it's not your choice.

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900