Report Pro 2 - NextProw

We encourage new members to introduce themselves here. Get to know one another and share your interests.
User avatar
Alf
Posts: 54
Joined: Wed Dec 30, 2020 10:04 am

Report Pro 2 - NextProw

Post by Alf »

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
FFF
Posts: 1521
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Report Pro 2 - NextProw

Post by FFF »

Alf,
there IS already 2.39.0.4 in the download, you might try this.
Regards
Karl
(on Win8.1/64, Xide32 2.19, X#2.19.0.2.)
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Report Pro 2 - NextProw

Post by Chris »

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.

.
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
Alf
Posts: 54
Joined: Wed Dec 30, 2020 10:04 am

Report Pro 2 - NextProw

Post by Alf »

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
AlfsDemo8.zip
(932.22 KiB) Downloaded 31 times
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Report Pro 2 - NextProw

Post by Chris »

Hi Alf,

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

.
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Report Pro 2 - NextProw

Post by Chris »

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, RuntimePrintingRpPrinter (D).prg

and change the access

Code: Select all

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

Code: Select all

ACCESS NextPRow AS REAL8
RETURN SELF:PRow+SELF:AvgCharHeight
That should do it..
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
markus.lorenzi@dvbern.ch
Posts: 107
Joined: Mon May 02, 2016 9:10 am
Location: Schweiz

Report Pro 2 - NextProw

Post by markus.lorenzi@dvbern.ch »

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

TIA
Markus
FFF
Posts: 1521
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Report Pro 2 - NextProw

Post by FFF »

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
(on Win8.1/64, Xide32 2.19, X#2.19.0.2.)
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Report Pro 2 - NextProw

Post by Chris »

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? :)

.
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
FFF
Posts: 1521
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Report Pro 2 - NextProw

Post by FFF »

Hi Chris,
watch your spam ;)
Regards
Karl
(on Win8.1/64, Xide32 2.19, X#2.19.0.2.)
Post Reply