fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: RP2 question

RP2 question 1 year 6 months ago #3296

  hsc's Avatar Topic Author hsc Offline Posts: 94
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

Please Log in or Create an account to join the conversation.

Last edit: by robert.

RP2 question 1 year 6 months ago #3297

  hsc's Avatar Topic Author hsc Offline Posts: 94
I forgot to change the title of the post

Juraj

Please Log in or Create an account to join the conversation.

RP2 question 1 year 6 months ago #3300

  Chris's Avatar Chris Offline Posts: 1137
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
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

RP2 question 1 year 6 months ago #3305

  hsc's Avatar Topic Author hsc Offline Posts: 94
Hi Chris
I send the most commonly used code to mail This email address is being protected from spambots. You need JavaScript enabled to view it.

Juraj

Please Log in or Create an account to join the conversation.

RP2 question 1 year 6 months ago #3316

  vzeljko's Avatar vzeljko Offline Posts: 2
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

Please Log in or Create an account to join the conversation.

RP2 question 1 year 6 months ago #3317

  robert's Avatar robert Offline Posts: 969
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:
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
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1