ReportPro compiler error

This forum is the place to discuss issues related to ReportPro, Xs2Ado, Vo2Ado, bBrowser and other 3rd party products
Post Reply
User avatar
Kuno Egger
Posts: 18
Joined: Tue Feb 27, 2018 3:58 am

ReportPro compiler error

Post by Kuno Egger »

I recently purchased ReportPro fot X# but am having a curious compiler error.

Here is the code:

oReport:PrintExport("PDFInvoice","PDF",#RP_PDF,cFile)

Here is the error message:

error XS1501: No overload for method 'ReportPro3.rpReport.PrintExport()' takes 4 arguments 1522,5 POS Print Output.prg POSInvoice:.ctor

No matter how many arguments I use for PrintExport() it tells me I have the wrong number. Any advice would be greatly appreciated.
User avatar
Chris
Posts: 5712
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: ReportPro compiler error

Post by Chris »

Hi Kuno,

Indeed, it's different from RP2, in RP3 the PrintExport() method has no parameters, it opens a dialog where the user inputs the export options.

Were you using RP2 or RP3 in VO?
Chris Pyrgas

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

Re: ReportPro compiler error

Post by FFF »

He wrote "ReportPro fot X#"
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Kuno Egger
Posts: 18
Joined: Tue Feb 27, 2018 3:58 am

Re: ReportPro compiler error

Post by Kuno Egger »

Hello Chris,

I'm using RP3 for X#. Is there an RP3dev.chm? I have not been able to find any description of RP3 parameters.

Kuno
User avatar
Chris
Posts: 5712
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: ReportPro compiler error

Post by Chris »

Hi Kuno,

I'm not aware of such a help file, but in another post you mentioned that RP3 is different to RP for VO. Which RP version were you using in VO? As I mentioned, this method does not have parameters in RP3, but it does in RP2, the ones you described in your code snippet.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Kuno Egger
Posts: 18
Joined: Tue Feb 27, 2018 3:58 am

Re: ReportPro compiler error

Post by Kuno Egger »

Hello Chris,

In VO I used RP2 version 2.17.
My goal is to upgrade our VO retail management software to X# and use RP3 for X# version 3.60.
My next question I guess is how programmers manage to do this when they don't have a reference for the syntax or parameter changes?
What am I missing?

Thanks for advice!

Kuno
User avatar
Chris
Posts: 5712
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: ReportPro compiler error

Post by Chris »

Hi Kuno,

Since you were using RP2 in VO, I suggest using the same in X#, too, this is the more compatible version to your existing code. RP3 (also in VO) has many design changes compared to RP2, among which the most important is that it is based on a custom set of SDK GUI classes (Classmate) and as you noticed has some incompatibilities to RP2. In fact, I don't think you're missing anything if you use RP2 instead of RP3, on the contrary we (and other users of X#) have actually made a lot more improvements to the X# RP2 version compared to that of VO, than for RP3.

As for a help file, I'm not sure if the original developers of ReportPro released an updated dev help file version for RP3, maybe someone else can step in here.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Kuno Egger
Posts: 18
Joined: Tue Feb 27, 2018 3:58 am

Re: ReportPro compiler error

Post by Kuno Egger »

Thanks Chris, I appreciate the advice.

Kuno
Post Reply