Skip to content

ReportPro - Tabs #1758

@ecosSystem

Description

@ecosSystem

If you print a memo-field with the following content (chr(9) between the blocks):

1234 5678 abcde
1234 5678 abcde

RP prints 5678 abcde too high:

Image

This happens with normal text and with RTF-text and worked fine in the VO-Version.
This bug is caused by the function rpTabbedTextOut in Drawtext.prg
Please replace the line
MoveToEx(sDrawText:hDC,nX,sDrawText:nY-sDrawText:nDescent,NULL_PTR)
with
MoveToEx(sDrawText:hDC,nX,sDrawText:nY,NULL_PTR)
This fixes the behaviour.

A second problem concerns only RTF-text. If the text after the first tab is marked as bold, RP goes completely nuts:

Image

I did not find a solution for this yet, this didn’t work in VO either.
If you find a solution please let me know. I will also try to figure it out when I find some time.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions