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
RP2 question
I forgot to change the title of the post
Juraj
Juraj
RP2 question
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
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
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
RP2 question
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
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
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:
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
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
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
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu