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.
ReportPro compiler error
Re: ReportPro compiler error
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?
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
XSharp Development Team
chris(at)xsharp.eu
Re: ReportPro compiler error
He wrote "ReportPro fot X#"
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
- Kuno Egger
- Posts: 18
- Joined: Tue Feb 27, 2018 3:58 am
Re: ReportPro compiler error
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
I'm using RP3 for X#. Is there an RP3dev.chm? I have not been able to find any description of RP3 parameters.
Kuno
Re: ReportPro compiler error
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.
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
XSharp Development Team
chris(at)xsharp.eu
- Kuno Egger
- Posts: 18
- Joined: Tue Feb 27, 2018 3:58 am
Re: ReportPro compiler error
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
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
Re: ReportPro compiler error
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.
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
XSharp Development Team
chris(at)xsharp.eu
- Kuno Egger
- Posts: 18
- Joined: Tue Feb 27, 2018 3:58 am
Re: ReportPro compiler error
Thanks Chris, I appreciate the advice.
Kuno
Kuno

