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

Trdx report created with standalone report designed isn't rendered properly in HTML5 report viewer

2 Answers 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Xi
Top achievements
Rank 1
Xi asked on 29 Aug 2017, 11:41 AM

Hi,

I have a report in which one of the tables uses objectDataSource, while the others use either SQL or Cube data sources.

I followed the docs (http://docs.telerik.com/reporting/standalone-report-designer-extending-configuration), and added necessary assembly references in the ReportDesigner config file. When I open and preview the local trdx report using report designer, I am able to see the table that uses objectDataSource populated correctly.

However, when I include the report in my Web Api application, and render it in HTML5 report viewer (http://docs.telerik.com/reporting/html5-report-viewer), the table doesn't show any data, while the other tables that use SQL and Cube data sources are populated correctly.

The reason I can think of is the assembly references weren't loaded when the report is rendered in HTML5 report viewer in the Web Api application. But I am not sure what needs to be done to overcome it. Can anyone please shed any light on this? Many thanks.

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 01 Sep 2017, 09:44 AM
Hello Xi,

Thank you for contacting us.

When using a report fed with data by an ObjectDataSource, for security reasons it is necessary to add some information (names of the data assemblies) in the application configuration file (web.config for web apps). The changes correspond to the ones made in Standalone Designer config file.
The described changes in the config file should solve the problem. If not, I would ask you to send us a solution with a viewer and report that replicates the issue, so that we could investigate further.

Regards,
Todor
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Xi
Top achievements
Rank 1
answered on 01 Sep 2017, 03:17 PM

Hi Todor,

 

Thank you, that worked!

In addition to what you said, I also had to add the path to locate the assemblies in web.config:

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<probing privatePath="MyDir; MyDir2\SubDir"/>

</assemblyBinding>

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