This is a migrated thread and some comments may be shown as answers.

How do I handle data consistently?

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 27 Jan 2012, 07:09 PM
I have a report that includes a row/col table of data + a couple charts. I bind the data to the report via an ObjectDataSource.

The problem I'm facing is that some of the data needs to be HtmlEncoded prior to display in the ReportViewer but should not be encoded when exported to PDF/XLS/etc. How do I go about doing this? Is there something passed to the ObjectDataSource that will allow me to know what the target is for the returned data?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 01 Feb 2012, 02:53 PM
Hi Rich,

Our declarative data source components are intended to specify declaratively how to retrieve the data for the report. They do not contain any data at all or deal with any flags etc that could help you in identifying an htmlencoded field, they only specify the means how to obtain it (e.g. in the case of ObjectDataSource - by invoking a method/property of a custom business object, etc.).

About your inquiry, check the following forum thread: HtmlEncode detail section.

Kind regards,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Rich
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or