on 11-13-2009 9:39 AM
Dear experts,
No matter what is the no of characters in the barcode value is, the total width of the barcode never change, it always stay at 50mm, example:
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII TESTING
IIIIIIIIIIIIIIIIIIIII TEST
IIIIIIIIIIII TE
<----50mm-------------------------->
Symbology: 128A
Allignment: Normal
What I want is the barcode width should follow the no of characters, like below:
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII TESTING
IIIIIIIIIIIIIIIIIIIII TEST
IIIIIIIIIIII TE
How to accomplish this?
**I already tried adjust the "Narrow Module Width" to different values, but the total width remain at 50mm, the only thing change is the barcode dimension.
Edited by: Yean Nean Yong on Nov 13, 2009 5:40 PM
Edited by: Yean Nean Yong on Nov 13, 2009 5:47 PM
I think this is not possible with standard: as you seem to use the new bar code technology (cf Note 645158 - New bar code technology for Smart Forms), here is how it works: SAP converts the barcode to an image, and sends it to the printer. There is no standard way to know what is the length of the generated barcode.
Maybe you can determine the formula to calculate length of generated barcode (I think it is not so complex) and then position the text using POSITION print control.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my fault again: POSITION can only position a BOX, not a text. Note that (almost all) commands may be used in both sapscript and in smart forms (I could create a box at a given position inside a smart form with POSITION and BOX commands).
So I think the easiest solution is to position by repeating spaces before the text you want to display. For example, you determine that one space width is 10 points; if the calculated barcode width is 500 points then you must repeat 50 spaces. You define barcode in its window, and text in another window...
I solved the problem by using 2 windows: 1st window for barcode & 2nd window for text, then I position the 2nd window right after the barcode (actual width of the barcode is 20mm, so I position 2nd window at 25mm), the windows position like below:
-------------------------------------------
| main window |
| --------------- |
| &Barcode& | 2nd window | |
| --------------- |
| |
| |
| |
| |
| |
|------------------------------------------|
I'm not sure whether this is the correct way to do it, but I got what I want. I already post this issue to SAP, they are investigating, maybe in the future they will enhance the barcode printing to follow actual width (Hope so).
Anyone care to help? I'm stuck with this problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.