RP2XS : programatically fix expressions

This forum is the place to discuss issues related to ReportPro, Xs2Ado, Vo2Ado, bBrowser and other 3rd party products
Post Reply
User avatar
baramuse
Posts: 98
Joined: Tue Nov 29, 2022 8:31 am
Location: France

RP2XS : programatically fix expressions

Post by baramuse »

Hi,

in our current VO product we use RP2 and have hundreds of client-specific reports.
Now that we are migrating to X#, we obviously use RP2-X# too, but the expression parser seem more strict and openning reports that were "valid" on VO/RP2 now show errors.
The errors are legit (missing parenthesis for example) but fixing them via the designer is not an option as it's hard to find where in the report, and because we have hundreds of reports (a lot of them were based on faulty reports)

So we're looking for a way to programmatically fix the reports - at least for the expressions that we know are faulty.
We've tried simply fixing the text in the binray but of course it outputs an invalid report after.

If anyone have experience with that kind of processing we'd be grateful for sharing it !

Best regards.
Last edited by baramuse on Fri Feb 02, 2024 9:40 am, edited 1 time in total.
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: RP2XS : programatically fix expressions

Post by robert »

Basile,
We are working on saving reports in XML format. That would make it much easier to locate and fix expressions.
When do you need this?

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
baramuse
Posts: 98
Joined: Tue Nov 29, 2022 8:31 am
Location: France

Re: RP2XS : programatically fix expressions

Post by baramuse »

Hi Robert,

we're not in a rush, our main product is not production ready in x#, but that's one of the checkbox we need to tick before we can launch.
What would be your possible timeframe (roughly) ?

Regards.
User avatar
Chris
Posts: 4907
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: RP2XS : programatically fix expressions

Post by Chris »

Hi Basile,

We will try to implement this in the next few weeks!
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply