xsharp.eu • RP2 question
Page 1 of 1

RP2 question

Posted: Mon Dec 04, 2017 9:40 am
by Juraj
Hi All,

I can use RP2 in my new app that I want to write in the Core dialect. It is possible? If yes, there is an example.

Juraj

RP2 question

Posted: Mon Dec 04, 2017 9:42 am
by Juraj
I forgot to change the title of the post

Juraj

RP2 question

Posted: Mon Dec 04, 2017 11:13 am
by Chris
Hi Juraj,

Yes, it's possible, but since RP2 is using usuals everywhere and the Core dialect does not understand usuals, you'd better introduce an intermediate layer library (in VO/Vulcan dialect) that uses the RP2 classes and exposes them through a strongly typed class or function interface. I can prepare you a sample, just let me know what functionality you want to use from RP2, user created reports, just printing .rpt files etc?

Chris

RP2 question

Posted: Mon Dec 04, 2017 12:44 pm
by Juraj
Hi Chris
I send the most commonly used code to mail chris@xsharp.eu

Juraj

RP2 question

Posted: Thu Dec 07, 2017 3:09 pm
by vzeljko
Hello, Chris
Is there a chance to see/get a RP2 sample other users of VO and this forum. This is essential for many VO developers who consider using X# in future.

Zeljko Vujicic

RP2 question

Posted: Thu Dec 07, 2017 3:21 pm
by robert
Zeljko,

There is really no problem in using RP2 in an application converted from VO. This application will be using the VO dialect and that is not a problem at all.
All code from VO will work virtually unchanged with X#.
For example:

Code: Select all

oRpReport:=RpReportRdd{self,alltrim(oDlg:Filename )}
IF oRpReport:IsValid
   oRpReport:ShowSetupDlg()
   cFilter := oRpReport:ExpressionBuilder(SELF,"While","1=1",TRUE,FALSE, TRUE, TRUE, TRUE, 0)
   oRpReport:FilterExpression := cFilter
   oRpReport:Print("Printing","PRINT.PRN",oDlg:FileName,"Please Wait...")
   oRpReport:Close()

ENDIF
The only real difference is that there is no longer a single RpReport class that has more or less functionality depending on the DLL you include.
We now have a RpReportRDD, RpReportSQL and RpReportDesigner

The question from Juraj had to do with using RP2 in the Core dialect.
The Core dialect is X# without support for the USUAL, DATE, FLOAT, ARRAY etc types (like C# with an XBase syntax).
For that to work you need to do something special. That is what Chris is preparing.

Robert