Consultor Eletrônico



Kbase P25755: Report builder prints squares instead of TAB space
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   23/05/2003
Status: Unverified

SYMPTOM(s):

Report Builder - tab stops are printed as a square but not as a tab stop

CTRL + TAB are used in an editor field to format the text in the field

CAUSE:

The 4GL records Character fields as basic-ASCII text. So TAB stops are recorded as CHR(9) which in turn is not recognised as a printable character.

FIX:

One way around this is to define UDF for chr9 as follows by way of example:

NAME: chr94
Expression: REPLACE(ctext,CHR(9)," ")
Parameters: ctext AS CHARACTER

Then: Define a Calculated Field
NAME: ed1
EXPRESSION: chr94(<field_name>)

Then: INSERT -> User defined Fields -> Calculated fields -> ed1

The resulting print replaces the "spaces" inplace of "square".

PROBLEM: if this is ARIAL then that's not a mm font so A compromise will have to be made by changing the font to (say) Courier to get the text lined up properly.