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: 53
  • 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
    • FFF's Avatar


  • Posts: 1419
  • Alf,
    there IS already 2.39.0.4 in the download, you might try this.
    Regards
    Karl (X# 2.15.0.3; Xide 2.15; 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: 3981
  • 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: 53
  • 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: 3981
  • 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: 3981
  • 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.

    Report Pro 2 - NextProw 02 Dec 2021 13:21 #20668

    • markus.lorenzi@dvbern.ch's Avatar


  • Posts: 99
  • Hi Chris,
    Could you please also place a fixed version of this in the download section?

    TIA
    Markus

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

    Report Pro 2 - NextProw 02 Dec 2021 14:27 #20669

    • FFF
    • FFF's Avatar


  • Posts: 1419
  • While you are at it, a fix for the problem long multi-order tags slowing down the appearance of the preview in designer would be fine, too ;) (i know, i promised to deliver a sample, shame on me...)
    Regards
    Karl (X# 2.15.0.3; Xide 2.15; W8.1/64 German)

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

    Last edit: by FFF.

    Report Pro 2 - NextProw 02 Dec 2021 20:44 #20673

    • Chris
    • Chris's Avatar


  • Posts: 3981
  • Hi Markus,

    Unfortunately things are a little hectic to create a new full installer right now, but since this is only a very small change, do you mind if I just send you an updated dll for now?

    Karl, can you please send a sample reproducing the problem? :)

    .
    XSharp Development Team
    chris(at)xsharp.eu

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

    Report Pro 2 - NextProw 02 Dec 2021 23:06 #20675

    • FFF
    • FFF's Avatar


  • Posts: 1419
  • Hi Chris,
    watch your spam ;)
    Regards
    Karl (X# 2.15.0.3; Xide 2.15; W8.1/64 German)

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

    Report Pro 2 - NextProw 03 Dec 2021 01:27 #20676

    • Chris
    • Chris's Avatar


  • Posts: 3981
  • Hi Karl,

    Thanks, got it, also just saw several more emails from you and also from other people that had ended up in the spam folder unfortunately.
    Stupid thing is that my spam folder contains more legitimate emails than actual spam, this madness with over-sensitive spam filtering needs to end some time...

    Will get back ASAP to you and everybody else that I have "ignored" in the last couple weeks..

    .
    XSharp Development Team
    chris(at)xsharp.eu

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

    Report Pro 2 - NextProw 03 Dec 2021 13:22 #20681

    • markus.lorenzi@dvbern.ch's Avatar


  • Posts: 99
  • Hi Chris
    yes, of course just the dll ist fine for now.
    Thanks Markus

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

    Report Pro 2 - NextProw 03 Dec 2021 22:01 #20685

    • Chris
    • Chris's Avatar


  • Posts: 3981
  • Hi Markus,

    Please check your mail! If anybody else needs this small quickfix, please let me know.

    Karl, thanks, got the files, but using two order tags was as fast as using one, taking 2 seconds max. I had to add a third one to make it take around 4 secs. But please let me do some more testing and will get back to you

    .
    XSharp Development Team
    chris(at)xsharp.eu

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

    Report Pro 2 - NextProw 03 Dec 2021 22:15 #20686

    • FFF
    • FFF's Avatar


  • Posts: 1419
  • Chris,
    just sent to your spam folder another mail, attached an animated gif. Really curious, if that differs from the experience at your side....
    Regards
    Karl (X# 2.15.0.3; Xide 2.15; W8.1/64 German)

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

    Report Pro 2 - NextProw 03 Dec 2021 22:17 #20687

    • Chris
    • Chris's Avatar


  • Posts: 3981
  • Hi Karl,

    Spam folder is on fire! :)
    I had followed the exact same steps as you demonstrate in the video and I am not seeing the delay. And I am even testing with a debug version of RP2....Let me have a look into the code though to maybe spot something and will get back to you.

    .
    XSharp Development Team
    chris(at)xsharp.eu

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

    Report Pro 2 - NextProw 04 Dec 2021 09:41 #20689

    • markus.lorenzi@dvbern.ch's Avatar


  • Posts: 99
  • Thank you very much. It works as expected :-.)
    Have a nice weekend :-)

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

    • Page:
    • 1