RP2 question

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

RP2 question

Post 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
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

RP2 question

Post by Juraj »

I forgot to change the title of the post

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

RP2 question

Post 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
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Juraj
Posts: 161
Joined: Mon Jan 09, 2017 7:00 am

RP2 question

Post by Juraj »

Hi Chris
I send the most commonly used code to mail chris@xsharp.eu

Juraj
User avatar
vzeljko
Posts: 35
Joined: Wed Sep 28, 2016 8:02 pm

RP2 question

Post 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
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

RP2 question

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply