ReportPro3

We encourage new members to introduce themselves here. Get to know one another and share your interests.
User avatar
FrankRouseré
Posts: 6
Joined: Tue Nov 27, 2018 8:27 pm

ReportPro3

Post 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
User avatar
Chris
Posts: 4913
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

ReportPro3

Post 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.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
robert
Posts: 4522
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

ReportPro3

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
rjpajaron
Posts: 364
Joined: Fri Nov 06, 2015 12:01 am

ReportPro3

Post 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.
User avatar
rjpajaron
Posts: 364
Joined: Fri Nov 06, 2015 12:01 am

ReportPro3

Post 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
User avatar
FrankRouseré
Posts: 6
Joined: Tue Nov 27, 2018 8:27 pm

ReportPro3

Post 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
User avatar
FrankRouseré
Posts: 6
Joined: Tue Nov 27, 2018 8:27 pm

ReportPro3

Post 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é
User avatar
FrankRouseré
Posts: 6
Joined: Tue Nov 27, 2018 8:27 pm

ReportPro3

Post 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é
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

ReportPro3

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
robert
Posts: 4522
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

ReportPro3

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply