Special character < replace in databand

Stimulsoft Reports.PHP discussion
Post Reply
programmer2
Posts: 13
Joined: Thu Mar 31, 2016 10:47 am

Special character < replace in databand

Post by programmer2 »

Hello,

we have a report which load dynamically string data in a databand. When the string contains special char like '<' then the report stop rendering and errors #2332 and #1090 shows up. I am thinking to replace special char on my sql query with < but I'm not sure if it's the easy solution. Anyone who has the same issue? Is there another better solution? Thank you in advance.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: Special character < replace in databand

Post by Jan »

Hello,

Can you specify which version of the Reports.PHP you are use? And which version of report engine you are use: JS or Flash?

Thank you.
programmer2
Posts: 13
Joined: Thu Mar 31, 2016 10:47 am

Re: Special character < replace in databand

Post by programmer2 »

Yes, of course. Sorry I didn't mention that information in my initial post: we are using StimulsoftReports.Fx_PHP_2014.1 with the Flash report engine. Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Special character < replace in databand

Post by Alex K. »

Hello,

In the last version in our adapters is changing these symbols on the server side:
$value = str_replace("&", "&", $value);
$value = str_replace("<", "<", $value);
$value = str_replace(">", ">", $value);

This is a correct way, due to the data is send as XML file. Please check the last version in which this issue is solved.

Thank you.
programmer2
Posts: 13
Joined: Thu Mar 31, 2016 10:47 am

Re: Special character < replace in databand

Post by programmer2 »

Thank you for your clear answer. Sure, I will have a look at the lastest version.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Special character < replace in databand

Post by Alex K. »

Hello,

Ok.
Let us know if you need any additional help.

Thank you.
Post Reply