Page 1 of 2
ReportPro3
Posted: Thu Jan 23, 2020 8:51 pm
by FrankRouseré
VO2.6 -> X# with XIDE,, ReportPro3 implementation
VO2.6 usage of ReportPro3 goes this way :
orapport := rp3Runtime{SELF}
orapport:Hyperlabel := Hyperlabel{#rp3Runtime,"rp3Runtime",NULL_STRING,NULL_STRING}
orapport:CreateEmbedding("ReportPro.Runtime")
orapport:InitAutoObject()
orapport:LoadReport("f:voapplicatiesrapportenS_afrek_p.rpt")
IF orapport:IsValid
orapport:PrintCaption := "Afrekening"
orapport:PreviewCaption := "Afrekening"
orapport:SetVariableValue(1,"gebouwnaam", safrek_gebouw_naam)
....
But how does it go with the X# compiled version ?
I got the ReportPo3 sourcecode for X# but no where to find any developers guide.
Any help appreciated.
Frank Rouseré - Middelkerke Belgium
ReportPro3
Posted: Thu Jan 23, 2020 11:52 pm
by Chris
Hi Frank,
Quick answer for now, interesting, I had never used RP3 and just realized it's quite different to RP2. I had a quick look and I think all you need to use now is
LOCAL oReport AS rpReport
oReport := rpReport{ <owner window> }
oReport:LoadReport(<file>)
IF oReport:IsValid
...
Please give it a try, if it doesn't work, I will look more closely into it and will get back to you.
ReportPro3
Posted: Fri Jan 24, 2020 10:10 am
by robert
Frank,
I will mail you some code (and will upload it here too) that allows you to use ReportPro3 in X# just like the activeX in VO (but without having to wrestle with the ActiveX support).
Robert
ReportPro3
Posted: Fri Jan 24, 2020 10:14 am
by rjpajaron
RP3 for X# do not have help file. I also have a hard time "translating it" VO's ReportServer classes that access RP3 directly via Classmate.
RP3 for X# do have issues on ADS. But if you want my help on how to open a report, assuming if you this on plain DBF, let me know. I can give you a sample code. Assuming I can find time this weekend. But who knows.... Let me know if u need it.
ReportPro3
Posted: Fri Jan 24, 2020 10:17 am
by rjpajaron
Hi Robert,
This is interesting. Will you test you code on ADS? I am on ADS 10.1 if that is an issue.
I am also excited to see your sample code. I do connect to RP3 via Classmate which does work on X# actually. But I want to see an alternative and see my problem fix on connecting to ADS.
robert wrote:Frank,
I will mail you some code (and will upload it here too) that allows you to use ReportPro3 in X# just like the activeX in VO (but without having to wrestle with the ActiveX support).
Robert
ReportPro3
Posted: Tue Feb 04, 2020 7:31 pm
by FrankRouseré
Great ans thanks to receive some help.
Did I miss a link somewhere ? I do not find some code helping me getting started.
Frank
ReportPro3
Posted: Wed Feb 12, 2020 5:20 pm
by FrankRouseré
Thank you Robert,
Being occupied with my software at irregular times, it can take a while before I answer.
In case you need a mail address (frank at laplage.be).
Or do you upload some code in this forum ?
Frank Rouseré
ReportPro3
Posted: Wed Feb 12, 2020 5:23 pm
by FrankRouseré
Hello Rene,
What is ADS ?
Data is stored in plain dbf with .ntx index files.
Some sample code (usable in XIDE would be great.
I think I only need the runtime component at this moment, just tot upgrade my old VO2.6 to X#.
Thanks, Frank Rouseré
ReportPro3
Posted: Sun Apr 11, 2021 11:37 am
by wriedmann
Hi Robert,
I will mail you some code (and will upload it here too) that allows you to use ReportPro3 in X# just like the activeX in VO (but without having to wrestle with the ActiveX support).
as I need that currently: was that code integrated in the X# RP3 version?
And another question: is this the same or similar thing as you have done for RP3 for VO?
Wolfgang
ReportPro3
Posted: Mon Apr 12, 2021 6:39 am
by robert
Wolfgang,
Thanks for reminding me <g>.
This code is very similar to the VO code.,
And it is not part of the X# RP3 version (yet).
Robert