OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How can print barcode ?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Emrecan
Newbie
Newbie


Joined: 19 Mar 2005
Posts: 2

PostPosted: Sat Mar 19, 2005 3:20 pm    Post subject: How can print barcode ? Reply with quote

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
View user's profile Send private message
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Sat Mar 19, 2005 3:31 pm    Post subject: Reply with quote

If you need Code 3 of 9 (or Code39) use a barcode font.

If you need something else, then use a reasonably priced tool to generate the barcode. (Download from here.)

I have it on my TO DO list to build an UNO package for OOo that creates barcodes in any symbology, based on the code from JBarcodeBean.
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
Emrecan
Newbie
Newbie


Joined: 19 Mar 2005
Posts: 2

PostPosted: Sun Mar 20, 2005 6:53 am    Post subject: Reply with quote

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
View user's profile Send private message
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Sun Mar 20, 2005 9:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> General Discussion All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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