"the barcodes produced this way cannot be read"
Barcodes not being read can be the result of a variety of issues.
* Poor print quality
* Poor contrast ratio between dark & light areas
* Insufficient barcode reader sensitivity
* In-accurately formed barcode
* For some code symbologies - Missing or inaccurate checksum digit
* Etc.
Is it unreasonable/unrealistic to expect you to be able to print 'Readable' UPC-A barcodes onto a form?
Absolutely not.
However UPC barcodes have a few more complexities to them than do "Code 3 of 9" (Code 39) barcodes. Most notably the presence of a Checksum digit as the last digit.
You might want to look at
Whenever I launch into a barcode implementation project I set myself up with a simplistic test setup - A keyboard 'wedge' interface attached to both my workstation keyboard and to a barcode reader.
In that way, barcodes read will appear on my workstation screen as manually typed-in characters. I then test things in some simplistic manner by Reading and then displaying them in NOTEPAD or WORD, not necessarily in FP.
If I attempt a READ and nothing shows up, there is a problem in either printing of the barcode or in reading it. I resolve those problems FIRST.
Then once I KNOW that the barcodes are printed both accurately and in a readable manner, and that my reader will actually successfully READ them, then I can go forward to utilize the barcode read within the FP/VFP application.
Once you have the Print/Read issues worked out, you can easily print them using your existing FP Report Forms by merely, within the Report Form, launching a UDF which will change Fonts for the Barcode section and then launching another UDF to return to the default font.
NOTE - Due to barcode height typically being different than character-type height, you
might also have to issue some paper positioning commands to return to the original location before resuming printing of the remainder of the report.
Good Luck,
JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com