xsharp.eu • ReportPro 3.9 and X#
Page 1 of 1

ReportPro 3.9 and X#

Posted: Mon Sep 11, 2023 4:53 am
by Komar
My VO applications used ReportPro 3.9.
For X# applications we had to use ReportPro 3.6 for xSharp.
Due to the fact that reports (*.rpt) version 3.9 are not compatible with 3.6 for xSharp, the question arises:
1. Is it possible to convert reports (*.rpt) from version 3.9 to version 3.6?
2. Is it possible to use PrintPreview ReportPro 3.9 in X#?

Re: ReportPro 3.9 and X#

Posted: Mon Sep 11, 2023 6:39 am
by robert
Komar,
The current version of RP3 for X# should be compatible with the report format for VO.
What problem do you see?

Robert

Re: ReportPro 3.9 and X#

Posted: Mon Sep 11, 2023 6:50 am
by Komar
When opening an RP3.9 report file in RP3.6 for xSharp:
"The following error was encountered while validating Field Object Expressions:
Description : Invalid Print When expression: Otchet.Nsk<>0
Subsystem : ReportPro
GenCode : EG_SYNTAX Syntax error
FuncSym : CMERROR:.CTOR
Severity : ES_ERROR
Can Default : False
Can Retry : False
Can Substitute : False
Stack Trace :
RPERROR:.CTOR (Line: 118)
RPRECTANGLE:INITEXPRESSIONS (Line: 535)
RPFIELD:INITEXPRESSIONS (Line: 321)
RPBAND:INITEXPRESSIONS (Line: 515)
RPSECTION:INITEXPRESSIONS (Line: 2159)
RPREPORT:VALIDATEEXPRESSIONS (Line: 738)
RPREPORT:CONNECT2SOURCE (Line: 168)
RPDESIGNER:SHOW (Line: 725)
RPBASEMDISHELL:OPENREPORTFILE (Line: 367)
RPBASEMDISHELL:OPENREPORT (Line: 318)
RPSHELLWINDOW:MENU_OPENREPORT (Line: 141)
RUNTIMEMETHODHANDLE:INVOKEMETHOD (Line: 0)
RUNTIMEMETHODINFO:UNSAFEINVOKEINTERNAL (Line: 0)
RUNTIMEMETHODINFO:INVOKE (Line: 0)
OOPHELPERS:SENDHELPER (Line: 0)
OOPHELPERS:SENDHELPER (Line: 0)
OOPHELPERS:DOSEND (Line: 0)
SEND (Line: 0)
CMENU:_PROCESSCOMMANDMSG (Line: 345)
CTOOLBAR:_PROCESSCOMMANDMSG (Line: 249)
CMDISHELL:ONCOMMAND (Line: 411)
RPSHELLWINDOW:ONCOMMAND (Line: 165)
CWINDOW:DISPATCH (Line: 705)
CMDISHELL:DISPATCH (Line: 248)
_CMDISHELLPROC (Line: 132)
ISDIALOGMESSAGE (Line: 0)
CMDISHELL:_PREPROCESSMESSAGE (Line: 89)
CAPP:EXEC (Line: 115)
CAPPEX:START (Line: 41)
RUNTIMEMETHODHANDLE:INVOKEMETHOD (Line: 0)
RUNTIMEMETHODINFO:UNSAFEINVOKEINTERNAL (Line: 0)
RUNTIMEMETHODINFO:INVOKE (Line: 0)
OOPHELPERS:SENDHELPER (Line: 0)
OOPHELPERS:SENDHELPER (Line: 0)
OOPHELPERS:DOSEND (Line: 0)
SEND (Line: 0)
CMSTART (Line: 366)
START (Line: 12)"

Re: ReportPro 3.9 and X#

Posted: Mon Sep 11, 2023 7:04 am
by Komar
I apologize, I fixed the error and everything is fine. I saw it when I posted my previous message.
It turns out that RP3.9 skips errors in the report (string field) <> 0, but RP3.6 for rSharp does not.

Thank you.

Re: ReportPro 3.9 and X#

Posted: Mon Sep 11, 2023 2:20 pm
by robert
Komar,
The VO macro compiler is very "forgiving". Our macro compiler is stricter.

Robert