Thread: Barcode in PDF
View Single Post
  #5  
Old 11th September 2017, 17:06
lotius81 lotius81 is offline
Junior Member
 
Join Date: Nov 2016
Posts: 28
lotius81 is on a distinguished road
Baan: Infor LN 10.4 - DB: SQL Server - OS: Windows Server 2008
I wanted to update this. After speaking with Infor we updated our tools to the latest patch versions and updated our porting set to 9.1a (although Infor recommends 9.1c).

After doing this I was able to get bar codes printing in PDFs.

Report Script for this looks like this:

Code:
declaration:
      extern domain	tcmcs.str50m	prod.barcode

header.1:
before.layout:
      prod.barcode = trim$(tisfc001.pdno)
Then directly in the prod.barcode's print expression, not in report script, I used the following:

Code:
bc$(9,4,prod.barcode)
and obviously set the domain to tc mcs.str50m.

Most importantly, I did not set the "bar code" value to 1 in the report field's layout, I left it as 0. This got my bar code to print to page.

Hopefully this helps someone else!

Rich
Reply With Quote