fbpx
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: ReportPro3

ReportPro3 1 month 2 days ago #12893

  FrankRouseré's Avatar Topic Author FrankRouseré Offline Posts: 6
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:\voapplicaties\rapporten\S_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

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

ReportPro3 1 month 2 days ago #12895

  Chris's Avatar Chris Offline Posts: 1668
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.
XSharp Development Team
chris(at)xsharp.eu

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

ReportPro3 1 month 2 days ago #12903

  robert's Avatar robert Offline Posts: 1502
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

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

ReportPro3 1 month 2 days ago #12904

  rjpajaron's Avatar rjpajaron Offline Posts: 249
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.
--

Rene Pajaron

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

ReportPro3 1 month 2 days ago #12905

  rjpajaron's Avatar rjpajaron Offline Posts: 249
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

--

Rene Pajaron

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

ReportPro3 3 weeks 21 hours ago #13056

  FrankRouseré's Avatar Topic Author FrankRouseré Offline Posts: 6
Great ans thanks to receive some help.
Did I miss a link somewhere ? I do not find some code helping me getting started.
Frank

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

ReportPro3 1 week 6 days ago #13197

  FrankRouseré's Avatar Topic Author FrankRouseré Offline Posts: 6
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é

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

ReportPro3 1 week 6 days ago #13198

  FrankRouseré's Avatar Topic Author FrankRouseré Offline Posts: 6
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é

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

  • Page:
  • 1