Backslash in the expression

Stimulsoft Reports.NET discussion
Post Reply
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Backslash in the expression

Post by LukasT »

Hello,
we have problem in using backslash....
We have own functions for using in expressions.... this function for example returns picture data (from application server) from string parameter... and parameter can be some relative path written as string in expression i.e.

Code: Select all

{OurFunctions.GetImageData(".\\temp\\directory\\newTestPicture.jpg")}
Problem is, that in compilation you translate escape sequences using some Replace function, so you replace "\\" with "\" and than on the same position you again replace "\n" with newline, "\t" with tabulator....

... using @"" is useless too....
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Backslash in the expression

Post by HighAley »

Hello.

Sorry, but we couldn't reproduce your issue.
Could you send us a sample report template which reproduces the issue for analysis.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Backslash in the expression

Post by LukasT »

See attached example.....
Attachments
ReportX.mrt
(4.16 KiB) Downloaded 314 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Backslash in the expression

Post by Ivan »

Hello,

We are working on the problem. We will let you know when the solution is available.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Backslash in the expression

Post by HighAley »

Hello.

We have fixed the issue.
The patch will be available in our next prerelease build on Friday.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Backslash in the expression

Post by LukasT »

Hello,
it looks like it is working correctly now...
... so thank you ;-)
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Backslash in the expression

Post by Andrew »

Hello,

Great!

Have a nice weekend!
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Backslash in the expression

Post by LukasT »

Hello,
now I see that it is not absolutely ok.... see attached report. You still have problem if string in expression ends with \\"
Attachments
ReportX2.mrt
(3.46 KiB) Downloaded 240 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Backslash in the expression

Post by HighAley »

Hello.

Sorry, for the delay with answer.
We have reproduced your issue and working on the improvement.
We will let you know about result.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Backslash in the expression

Post by Alex K. »

Hello,

The issue is fixed. The fix will be available in teh next prerelease build on this week.

Thank you.
Post Reply