cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Forms Barcode is printed over Border

Teaman
Explorer
0 Kudos
262

Hi experts,

 

I have following problem in SAP transaction SFP I try to print a barcode. The barcode is in a subform that is not wider than the page, I've already reduced the barcode to a small size. 

But it still gets printed over the edge. I dont get the problem, I've tried a lot but the result is always the same. I use a 128 Barcode. It get declared as a GS1-128 Barcode.

In Designer:

Teaman_0-1733755901784.png

In print view(When printed from zebra label printer its also over the edge)

Teaman_1-1733755999417.png

Thank you for your help!



View Entire Topic
Ryan-Crosby
Active Contributor

The mechanism I have found that addresses this problem is to set the data length of the bar code in a javascript function in either layout:ready or ready:form, depending on the form configuration.

this.ui.barcode.dataLength = this.rawValue.length.toString();

 

Regards,

Ryan Crosby

Teaman
Explorer
0 Kudos
Thanks! it seems to be working!
Teaman
Explorer
0 Kudos
I have one more question if you know. The Barcode is a little to small now. Its not scaled over the entire width of the form. So its a little complicated to scan. Thank you for your help!
Ryan-Crosby
Active Contributor
0 Kudos
@Teaman just extend the length of your barcode window to the desired width and it should cover more space that way.
Teaman
Explorer
0 Kudos
Thats the problem. If I pull it to wide it gets printed over the edge if i pull it to small it is to small to scan without a hassel. It only got those two states it does not size to the size I gave the barcode in the designer.
Ryan-Crosby
Active Contributor
0 Kudos

@Teaman the suggestion I gave is not perfect but you'd have to play with your alignment to get it the best that you can, including possibly manually setting the width (if you are relying on the ticks), or adjusting your display for more tick marks.