Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data matrix barcode in FoxPro 1

Status
Not open for further replies.

linousa

IS-IT--Management
Mar 8, 2013
79
US
Converting from barcode39 to data matrix, barstring="1234567890asdfghjkl", any suggestions on easiest implementation?

Thank you
 
The easiest implementation is to use a Code 3 of 9 Barcode Font (a.k.a. Code39)

There are a lot of them out on the web and many of them are free.
Keep in mind that the font will need to be Installed onto the user's workstation so that they can be utilized on the VFP Report when the Report Form prints.

Once installed into the Development system, they can be selected and configured into the VFP Report Form text object.
Then when the user runs the report, that font will need to be found within their system.

Good Luck,
JRB-Bldr
 
I think the OP is looking to move from 3 of 9 to a QR style barcode.

I put barcodes (literally millions of them) on PDF files, using something called FoxBarcodeQR

The code is all in VFP and it uses a library called barcodelibrary.dll

Google it and you should find it


Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Griff - You are probably correct.
Obviously I mistakenly read it as needing to print Code 3 of 9 on a Dot Matrix printer.
Especially since there is no Barcode Symbology named "Dot Matrix"

linousa - you need to more clearly specify which Bar Code Symbology you need.

Even among the 2-D Barcode Symbologies there are a number of different ones (QR being 1 of them).
( see the variety of them listed at: Link )

linousa - Good Luck,
JRB-Bldr
 
Doh!!! -- I guess that I continue to not read the original post COMPLETELY.

linousa is not wanting to generate a QR code.
And he clearly states the barcode symbology if I would have just read the posting more thoroughly.
He is looking to generate a Datamatrix symbology 2D barcode.
While they are both 2-D barcode symbologies, Datamatrix codes are very different than a QR codes.

linousa - I'd recommend looking into an API/OCX approach for generating that.
You might want to do a Google Search such as:
or​

I am guessing that you would have to use something like that to create an 'external' Image file showing the Datamatrix barcode.
And then launch your Report Form in which you would reference/utilize that image within a Report Form - Image Object where needed.

If you needed multiple, different Datamatrix coded on separate reports you could always do this in a loop.

I'd approach it with something like:
Code:
SET SAFETY OFF
SELECT ReportData
SCAN
   cDatamatrixStr = <something>
   
   < pass cDatamatrixStr to the Datamatrix API to generate DMImage.jpg >  && Despite changing data, always write to the same Image Filename  (.jpg, or .bmp)

   REPORT FORM MyReport NOCONSOLE TO PRINTER  && In this Report Form consistently reference DMInage.jpg in an Image Object

   < you might want to copy or move off the DMImage.jpg in case you might need it later >
   < if so, consider renaming it at that time so that it can be readily found again >
ENDSCAN

Good Luck,
JRB-Bldr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top