Page 1 of 2
Report Pro 2 - NextProw
Posted: Wed Nov 24, 2021 1:47 pm
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
Report Pro 2 - NextProw
Posted: Wed Nov 24, 2021 2:08 pm
by FFF
Alf,
there IS already 2.39.0.4 in the download, you might try this.
Report Pro 2 - NextProw
Posted: Wed Nov 24, 2021 5:15 pm
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.
.
Report Pro 2 - NextProw
Posted: Fri Nov 26, 2021 2:16 pm
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
Report Pro 2 - NextProw
Posted: Fri Nov 26, 2021 5:44 pm
by Chris
Hi Alf,
Thanks for the sample! Indeed, it works in VO but not in X#, looking into it...
.
Report Pro 2 - NextProw
Posted: Fri Nov 26, 2021 6:16 pm
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..
Report Pro 2 - NextProw
Posted: Thu Dec 02, 2021 12:21 pm
by markus.lorenzi@dvbern.ch
Hi Chris,
Could you please also place a fixed version of this in the download section?
TIA
Markus
Report Pro 2 - NextProw
Posted: Thu Dec 02, 2021 1:27 pm
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...)
Report Pro 2 - NextProw
Posted: Thu Dec 02, 2021 7:44 pm
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?
.
Report Pro 2 - NextProw
Posted: Thu Dec 02, 2021 10:06 pm
by FFF
Hi Chris,
watch your spam