Telerik Forums
Reporting Forum
3 answers
205 views

Hi,

I have a report that is using an EntityDataSource to access data from an EntityFramework context in a separate assembly. When I try to view this report in preview, I see the following message in the Preview tab: "Exception has been thrown by the target of an invocation. Could not load type '<My EF Context Type>' from assembly '<My EF Context Assembly>" This appears to be all the help I get with this issue. How can I move forward? Is there any form of logging that I can access etc. etc? I have subscribed to the report's Error event but that isn't fired.

By the way: I have also written a console application that instantiates the report and exports it to PDF using the ReportProcessor. This works just fine so I know the issue isn't a simple missing reference or similar. Clearly, the report preview functionality has some extra requirements that I am not fulfilling.

Windows 7 64-bit, VSTS 2017 targeting .NET 4.5, Telerik Reporting 11.1.17.614.

NB:

  • My context has a constructor that accepts a connection string and when run through the console app, a break point reveals a correct connection string going in and being passed to the base EF context class.
  • I have added the assembly that defines my EF context into the Telerik section of the Telerik report assembly's app.config, in the <assemblyReferences> section.
  • My EF context is database first.
  • The assembly (project) that defines the report references EF, EF,SqlServer and my own assembly that defines my EF context.

 

I'm not sure what else you will need so I'll leave it like this for now. Let me know if you need anything else.

Thanks

 

Katia
Telerik team
 answered on 09 Aug 2017
2 answers
169 views

When using the "Telerik MVC Report Viewer View..." template from within Visual Studio 2015, the wizard properly shows the reports created within the attached Kendo Reports Library project. However, none of the reports show when using the same wizard within Visual Studio 2017.

This required me to keep the VS 2015 and VS 2017 applications and flip back to VS 2015 just for this purpose.

Ant way to make it work within VS 2017?

Peter
Telerik team
 answered on 08 Aug 2017
1 answer
151 views

Hi,

 

I export telerik report to pdf file but data not show fully rows.

for export excel show normal.

This report use sub report and problem row on this sub report also

 

 

Katia
Telerik team
 answered on 08 Aug 2017
3 answers
270 views

I would like to share an example of how to create Gantt chart using, both the Telerik Reporting.Chart and Telerik.Reporting.Graph controls.  Hopefully, this example can help someone.

 

https://dl.dropboxusercontent.com/u/104610572/ReportTest.zip​


 
Katia
Telerik team
 answered on 08 Aug 2017
13 answers
274 views
I want to print my data in my thermal printer.
However, I dont know how can i set up the roll paper. (Every paper type needs a high but i don't need it)
I want to print just one paper looks like receipt paper.
Please let me know it.

Thank you.
Katia
Telerik team
 answered on 08 Aug 2017
1 answer
199 views

Hello!

I implement Telerik report with .TRDX and need to export data with excel file. I looked at report processor programming and do logging time when report processing before and after RenderReport

 

   bool result = reportProcessor.RenderReport("XLS", uriReportSource, deviceInfo, this.CreateStream, out documentName);

 

It is Very slow when teleirk callback to write file in my resource but still work in local

and then I deploy to azure site. it's processing 2-3 minutes and show error 500 time out later.

Have anyone can help about this issue?

Thanks,

KT

Katia
Telerik team
 answered on 08 Aug 2017
1 answer
174 views

Can Telerik report tool for HTML5 work with ASP.NET Web Forms using a Master page?

When I try the report does not display inside of the asp:Content, it displays on top of it.  Writing over some of the other content of the page.

 

 

 

David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 07 Aug 2017
1 answer
424 views

Hi Experts,
I need to have a report break AFTER the PathwayId changes. I have used 2 queries/reports to get the desired results:
For the Header/Footer of the report which shows the Title, Description, Date and Score of each Pathway I used:

SELECT DISTINCT r.PathwayId,  p.Title, p.Description, s.Score, CONVERT(Varchar(10), s.CreateDate, 101) AS [Date]
  FROM ucare.Responses r
  INNER JOIN ucare.RiskScores s ON s.ScheduleId = r.ScheduleId
  INNER JOIN ucare.Pathways p ON p.Id = r.PathwayId
  WHERE r.ScheduleId = @Enc AND PathwayId IN (Select DISTINCT PathwayId FROM ucare.Responses
  WHERE r.ScheduleId = @Enc )and Score = (SELECT MAX(Score) FROM ucare.RiskScores
  WHERE ScheduleId = @Enc)
  GROUP BY r.PathwayId,  p.Title, p.Description,  s.Score, s.CreateDate
  ORDER BY r.PathwayId, p.Title

For the Detail section Sub-Report that will have the Questions and Answers per each Pathway I have used:

SELECT PathwayId, d.Label AS Question,
CASE WHEN Text = 'False' THEN 'No'
     WHEN Text = 'True' THEN 'Yes'
     ELSE Text END AS Answer, CONVERT(Varchar(10), EntryDate, 101) AS Entered
FROM ( SELECT p.PathwayId, p.Text, p.EntryDate, p.DecisionInputId,
      MAX(p.EntryDate) over (PARTITION BY p.PathwayId) AS Entered
      FROM ucare.Responses p
      WHERE p.ScheduleId = @Enc) t
  INNER JOIN ucare.DecisionInputs d ON d.Id = t.DecisionInputId
  WHERE EntryDate = Entered
  ORDER BY PathwayId

I’ve placed this report in the detail section with approximately 50 other sub-reports linked with the report parameters of @CaseNum and/or @Enc.

The diagram below is showing what I need this report to output:
Pathway_1_Title                           Date_Entered
      Question_1                          Answer_1
      Question_2                          Answer_2
      Question_3                          Answer_3
Pathway_1_Description                     Score
Pathway_2_Title                           Date_Entered
      Question_1                          Answer_1
      Question_2                          Answer_2
      Question_3                          Answer_3
Pathway_2_Description                     Score
Pathway_3_Title                           Date_Entered
      Question_1                          Answer_1
      Question_2                          Answer_2
      Question_3                          Answer_3
Pathway_3_Description                     Score

Any help or guidance will be appreciated. If you need anymore info please do not hesitate to ask.

Thank you,

Jack Willhoite

Katia
Telerik team
 answered on 07 Aug 2017
3 answers
897 views

I get this after upgrading to the latest reporting DLL's from RC1. I know this is a breaking change according to the following:

http://www.telerik.com/support/kb/reporting/details/telerik-reporting-r3-2016---upgrade-issues-with-objectdatasource-component

but I do not know where to put the information. I've tried the app.config, web.config but I still get the message. My project is using an HTML5 viewer in a .Net Core view and I just can't quite get it to work properly.

Thank you for any assistance,

Scott

Anatoliy
Top achievements
Rank 1
 answered on 04 Aug 2017
6 answers
453 views
Hi,

Can the WPF report viewer be used with the WCF service?  If so is there any example code for this?

Thanks,
Rob
Katia
Telerik team
 answered on 04 Aug 2017
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?