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

WPF .trdp not calling code behind .cs

3 Answers 142 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ronald
Top achievements
Rank 1
Ronald asked on 01 Aug 2018, 11:27 PM

I've added a special logic on the backend of our reports to automatically measure table column widths.

 

The actual logic works on the preview mode of the designer but when compiled into a .trdp it doesn't work anymore. It's not being called anymore and I'm sure its not called because i added logging on the backend code.

3 Answers, 1 is accepted

Sort by
0
Ronald
Top achievements
Rank 1
answered on 01 Aug 2018, 11:59 PM
Also, we use a report service and not just run them locally. 
0
Ronald
Top achievements
Rank 1
answered on 03 Aug 2018, 04:27 PM
up
0
Silviya
Telerik team
answered on 06 Aug 2018, 03:17 PM
Hello Ronald,

In general, the Standalone Report Designer works only with XML report definitions (.trdp/x). Converting reports from a class library into TRDP format can be achieved with Import Wizard built in Standalone Designer. Step by step instructions could be found in How to: Import reports created with the VS Report Designer help article.

However, note that event handlers and methods can not be imported. Custom code like properties, events, methods, instantiated data objects will not be serialized in XML along with the settings of the report.
A possible scenario is creating an user function for the custom methods and add references into configuration section of the Standalone Designer. More details can be found in Extending Report Designer help article. After that, you'll have to configure Telerik Report Server to use reports with custom functions.

If you face further issues, we would need the problematic report and the DLL of the user function, so we can test it locally.

Regards,
Silviya
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
Tags
General Discussions
Asked by
Ronald
Top achievements
Rank 1
Answers by
Ronald
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or