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

Trouble deploying reports from Visual Studio designer

1 Answer 141 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jennifer
Top achievements
Rank 1
Jennifer asked on 18 Jan 2019, 06:57 PM

I have previously created a report in the standalone designer and successfully deployed it to my server with an api.  I was able to view it in my Angular application.  This worked fine using the .trdp file.  However, I recently tried creating a report in the Visual Studio designer and am having difficulty getting it deployed to my server.  I see there is no .trdp file.  Are there any files that are supposed to be generated and reside in the reports folder if I am doing it this way?  Is everything just compiled?  

I am getting the error "Unable to get report parameters. Report 'MyReport' cannot be resolved."  My report does not have any parameters and my controller code contains a call to .AddFallbackResolver.  

Please let me know what steps can be taken to a resolution.

 

Thanks,

Jennifer

1 Answer, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 23 Jan 2019, 08:31 AM
Hi Jennifer,

I noticed that you have opened a support ticket on the same topic. Let me share my answer here as well:

"If I understood correctly, there is a class representing report definition (i.e. MyReport), and the requirement is to display this report in the viewer.

The reports created with Visual Studio Report Designer are usually stored as .NET classes inheriting Telerik.Reporting.Report|ReportBook. To access a .NET class declaratively you can use the assembly qualified name of the report's type. The Reporting engine will use Reflection to create an instance of the report class by using its default parameterless constructor.

An example is illustrated in the API Reference: TypeReportSource. For more information about all available report sources and how to set them, please refer to Available Report Sources section and How to: Set ReportSource for Report Viewers article. 

I hope this helps. Let us know if any other question comes up."


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
Jennifer
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Share this question
or