Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Barocde printing in a basic report.

Former Member
0 Likes
421

Experts,

Can I print bar-code in a basic report.

When i take a print out of the basic report the print out should come with bar-code. Is this possible?

Suggestions will be rewarded with points.

Cheers.

Experts,

Can I print bar-code in a basic report.

When i take a print out of the basic report the print out should come with bar-code. Is this possible?

Suggestions will be rewarded with points.

Cheers.

1 REPLY 1
Read only

Former Member
0 Likes
366

HI,

DATA: BAR_CODE1(16) VALUE `ABC01230123A01'

NEW-PAGE PRINT ON IMMEDIATELY `X'.

FORMAT COLOR OFF INTENSIFIED OFF.

  • If the barcode is the first element on the page, the following Write

  • statement is needed (otherwise you get a date in the first print

  • control.

WRITE:/

  • Turn on the barcode font, print the data, and switch back to the

  • printer's default font. Be sure to use NO-GAP to avoid unwanted

  • characters or CR/LF.

PRINT-CONTROL FUNCTION `BCPFX'

WRITE: BAR_CODE1 NO-GAP

PRINT-CONTROL FUNCTION `BCSFX'

  • Add a Write statement to prevent insertion of CR/LF into the barcode.

WRITE:/

Regards

Sudheer