cancel
Showing results for 
Search instead for 
Did you mean: 

Problem RTF columns positions Power builder 12.5

Former Member
0 Kudos

Hi,

We a problem with RTF report margins in Powerbuilder 12.5 .

We noticed a different type of margins interpretation between Powerbuilder 9 and 12.5 when there are many fields in the same row.

We would like to display the single fields under a specific heading column, as a table;  for example:

heading1          heading2      heading3

column1           column2       column3   

In powerbuilder 9 was easy to do this , by setting the heading columns and fixing the fields positions , by tabbing as shown below


In Powerbuilder 12.5 this doesn't work properly, because the fields are shifted from the original position. The result is this:


Only the first 2 colums are correctly aligned, the third (A POS) is not well positioned.

Someone have any idea to how work around this problem?

Thank you

Luca

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Did you try to change your default tab settings?

Former Member
0 Kudos

Hi Luca;

  Have you tried using a non-proportional (fixed width) font ( ie: Courier, Courier New, and Lucinda Console, etc )?

Regards ... Chris

Former Member
0 Kudos

Hi Chris,

yes we tried and using fixed width font is a possible solution. In every case you have to create a compute field to fixed the lenght of the column , otherwise you can't be sure that the columns positions (not heading column) is that you want ; and use another font instead the original.

We were wondering if there is another way....

Thank you so much

Luca

Former Member
0 Kudos

Hi Luca;

  AFAIK this is the only way I have been able to accomplish the alignment in the new RTF control (3rd party control BTW) changed over in PB v10-10.5 time frame.

  I wish there was a setting in the RTF control in the Window or DW Painter that allowed us to set "Tab Stops" like you can in MS-Word - or - even a SetTabStop ( ) method that gave us more control at run time. 

Maybe someone else has another idea (<fingers crossed for you here>)

Regards ... Chris