| View previous topic :: View next topic |
| Author |
Message |
Emrecan Newbie

Joined: 19 Mar 2005 Posts: 2
|
Posted: Sat Mar 19, 2005 3:20 pm Post subject: How can print barcode ? |
|
|
I can print a label with Zebra TLP2844 printer from OpenOffice-form.
How can I print barcode? Or How Can I send EPL2 language commands to the Zebra printer? |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
Emrecan Newbie

Joined: 19 Mar 2005 Posts: 2
|
Posted: Sun Mar 20, 2005 6:53 am Post subject: |
|
|
Thank you DannyB.
I couldn't use code39 barcode font. The scanner don't read perfectly. Today I will read the JBarcodeBean's documents.
I use a OOo form. I become the data from MySql table to the textfield. And I can write the form to the label with Zebra TLP2844. Now, I want to send some code to the printer like this:
${
N
B600,30,0,1B,2,5,40,N,"data"
P1
}$
This code print barcode ( EPL2 language.1B:Code 128) directly printer. I could send the code with a DOS prompt. "copy myfile.txt LPT1" .
How can I send the code from OOo-form to the Labelprinter? Need I a macro? |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Sun Mar 20, 2005 9:31 am Post subject: |
|
|
| Emrecan wrote: | I couldn't use code39 barcode font. The scanner don't read perfectly. Today I will read the JBarcodeBean's documents.
|
The JBarcodeBean would be useful if you want to create a drawing of barcodes.
An UNO service to generate barcode shapes (something I want to build) would be useful for a simple Basic macro to create shapes, say in a spreadsheet. For instance, a simple macro could scan each row of a spreadsheet, and create a barcode shape in a certian column of the spreadsheet, for instance.
| Emrecan wrote: | I can write the form to the label with Zebra TLP2844. Now, I want to send some code to the printer like this:
${
N
B600,30,0,1B,2,5,40,N,"data"
P1
}$
This code print barcode ( EPL2 language.1B:Code 128) directly printer. |
Completely lost. Do not know what that means?
| Emrecan wrote: | I could send the code with a DOS prompt. "copy myfile.txt LPT1" .
How can I send the code from OOo-form to the Labelprinter? Need I a macro? |
You could write a macro that
- writes out a BAT file
- calls a shell command that runs the BAT file
- deletes the BAT file
_________________ Want to make OOo Drawings like the colored flower design to the left? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|