Welcome, Guest
Username: Password: Remember me
Welcome to the XSharp forum!

Tell us and our members who you are, what you like and why you became a member of this site.
We welcome all new members and hope to see you around a lot!
  • Page:
  • 1

TOPIC:

Report Pro 2 - NextProw 24 Nov 2021 14:47 #20528

  • Alf
  • Alf's Avatar
  • Topic Author


  • Posts: 38
  • Hi to all X-Sharp-Friends,
    after converting an application using ReportPro2 from VO to XS, I get a little problem with oPrinter:NextPRow: NextPRow has always the same value as PRow and is not increased by AvgCharHeight. My current solution is to increase PRow manually (i.e. PRow := PRow + 0.43). But this seems not to be very smart. My version is 2.36.0.4.
    Thanks for help.
    Alf

    Please Log in or Create an account to join the conversation.

    Report Pro 2 - NextProw 24 Nov 2021 15:08 #20529

    • FFF


  • Posts: 1241
  • Alf,
    there IS already 2.39.0.4 in the download, you might try this.
    Regards
    Karl (X# 2.7; Xide 1.27; W8.1/64 German)

    Please Log in or Create an account to join the conversation.

    Report Pro 2 - NextProw 24 Nov 2021 18:15 #20535

    • Chris
    • Chris's Avatar


  • Posts: 2860
  • Hi Alf,

    Can you please create and send me (the aef) a small sample in VO, showing how you use NextPROW in a report? Then I will port it to X# to compare.
    I checked through my sources and apparently I had never used that, I only use PROW.

    .
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Report Pro 2 - NextProw 26 Nov 2021 15:16 #20550

    • Alf
    • Alf's Avatar
    • Topic Author


  • Posts: 38
  • Hi Chris,
    you find my demo in the attachment. After opening a DBF a simple report is created: all records appear in the same line. When I replace "NextProw" with "PRow += AvgCharHeight" (please look for the comment lines "ALF" in PrintPageBody) it works well. Ok, that's not really a problem for me, but nevertheless a correction for the next version would be nice. :)
    Alf
    Attachments:

    Please Log in or Create an account to join the conversation.

    Report Pro 2 - NextProw 26 Nov 2021 18:44 #20554

    • Chris
    • Chris's Avatar


  • Posts: 2860
  • Hi Alf,

    Thanks for the sample! Indeed, it works in VO but not in X#, looking into it...

    .
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Report Pro 2 - NextProw 26 Nov 2021 19:16 #20555

    • Chris
    • Chris's Avatar


  • Posts: 2860
  • Hi Alf,

    Ah, it's because of a silly bug in the RP2 code. Do you have the source code version? If you do, please go to the file

    \ReportPro2, Runtime\Printing\RpPrinter (D).prg

    and change the access

    ACCESS NextPRow AS LONGINT
    RETURN LONGINT(SELF:PRow+SELF:AvgCharHeight)

    to

    ACCESS NextPRow AS REAL8
    RETURN SELF:PRow+SELF:AvgCharHeight

    That should do it..
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1