Marc wrote:
> I am looking for a simple(?) way to convert a part 
> number and print the number along with the upc barcode 
> for that number on a plain paper report.

The solution really should be independent of the printer.
 
Have a look at our web page for PrintWizard:
remove.nospam.pleaseNebula-RnD.com/products/printwizard.htm
(We don't sell it or get commissions, I just like and recommend
it.)

Note what Robert provided for "3 of 9" formatting only:
BARCODE.OUTPUT = 
  BARCODE.OUTPUT:CHAR(27):
  "*c":W:"a":BARCODE.HEIGHT:"b0P"
BARCODE.OUTPUT = 
  BARCODE.OUTPUT:CHAR(27):"*p+":W:"X"
....
CASE THECHAR = '1' ; PATTERN ="-..-....-"
CASE THECHAR = '2' ; PATTERN ="..--....-"

While it's great that it works, it's not "simple" by any means,
only does one format, and must have taken a lot of time to code.

Now compare that to PrintWizard code (see Demo2 from link above):

BNUMBER = "1234567890"
PRINT "<goto x=.1in y=1.15in>"
PRINT "<p align=center><font size=20pt>":
PRINT "Barcode for ": BNUMBER :" is":
* Move to 300 pixels after the word 'is'
PRINT "<goto x=+300>":
* Add the barcode itself
PRINT \<barcode pointsize=20 src="\ : BNUMBER :
PRINT \" style=2of5 addcheckchar=off>\
PRINT "</font></p>"

The XML gets interpreted by PrintWizard after the print job is
spooled and before it hits the printer - you actually spool into
PW and that spools back out to the desired printer.  Note:
- the specific positioning,
- lack of cryptic PCL escape codes,
- ability to change the style/coding just by saying "2of5",
"3of9", etc,
- it's completely printer independent,
- it's independent of MV platform,
- (actually independent of MV entirely so you can use it with
other non-jBase projects)
- and it's very simple to read and write, which matches the
original request.

HTH

Tony Gravagno
Nebula Research and Development
TG@ remove.pleaseNebula-RnD.com
Nebula R&D sells mv.NET and other Pick/MultiValue products
worldwide, and provides related development services
remove.pleaseNebula-RnD.com/blog
Visit PickWiki.com! Contribute!
http://Twitter.com/TonyGravagno




-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to