Telerik Forums
Reporting Forum
3 answers
558 views

Hi,

I have recently upgraded Telerik Reporter Designer and Telerik package for Visual Studio for the newest available version which is possible to download from my company's account. Current Telerik Report Designer is R1 2018 and the Telerik.Reporting package in the project 12.0.18.416 - previously was 11.0.17.118.

For upgrading I have used Telerik Reporting Upgrade Wizard in Visual Studio. Everything worked fine, at least I thought so, because when I run the project locally, there is no problem. However, after uploading project to the dev environment the web application doesn't work. It throws error right from the start. Could you please tell me what am I doing wrong? How is it possible that everything work fine on the local machine and when uploaded to server it doesn't work at all? I'm attaching the printscreen of the error.

I really hoped that the upgrade will be smooth using the upgrade wizard and was very dissapointed to end up with broken project. I have spent many hours trying to find a solution, but I wasn't lucky.

Thank you in advance for any suggestions.

Todor
Telerik team
 answered on 16 Nov 2020
18 answers
3.5K+ views

How can I generate PDF from a .Net Core WebApplication?
I'm using the following code:

var reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
var uriReportSource = new Telerik.Reporting.UriReportSource();
 
uriReportSource.Uri = "Report.tdrp";
 
var result = reportProcessor.RenderReport("PDF", uriReportSource, null);
 
var output =  result.DocumentBytes;
 
return File(output, "application/pdf");

 

But it gives me an exception:

System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms'

Todor
Telerik team
 answered on 13 Nov 2020
1 answer
800 views

Hi.

I have a problem with Telerik Reporting.

Everything works fine when working under a Visual Studio instance, but when I make a deploy to my IIS Server it sends me the error that the parameters cannot be obtained. I install on my server Telerik Report Designer R2 2017 and Fiddler to catch the error.

{"message":"","exceptionMessage":"Report '%7B%22ReportType%22%3A1%2C%22Id%22%3A%22c5c93e92f97d409a8c73fd0dd7eef3cc%22%7D' cannot be resolved.","exceptionType":"Telerik.Reporting.Services.Engine.InvalidReportException","stackTrace":"   in Telerik.Reporting.Services.Engine.ReportEngine.ResolveReportSource(String report)\r\n   in Telerik.Reporting.Services.Engine.ReportEngine.GetParameters(String clientID, String report, Dictionary`2 parameterValues)\r\n   in Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetParameters(String clientID, ClientReportSource reportSource)\r\n   in lambda_method(Closure , Object , Object[] )\r\n   in System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n   in System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack tracking from the previous location where the exception occurred ---\r\n   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   in System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack tracking from the previous location where the exception occurred ---\r\n   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   en System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack tracking from the previous location where the exception occurred ---\r\n   in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   in System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()"}
Dimitar
Telerik team
 answered on 13 Nov 2020
1 answer
172 views

Hello Admin,

 

I would like to install Telerik Reporting in silent mode without user intervention, i did search through the documentation and help but was not able to find it.

Is there any noninstall i.e. zip file which can used to install the same and other steps that needs to be performed once the zip has been extracted.

 

Thanks

Piyush

 

Neli
Telerik team
 answered on 13 Nov 2020
1 answer
602 views

Error: Incorrect version. The target project is using different Telerik Reporting version. Before adding this the project should be upgraded with the Upgrade Wizard or you should choose item template for the correct Telerik Reporting version

I have followed all the suggestions.  I have used the upgrade wizard.  I've made sure the .vbproj file has the correct version which is 14.2.20.916 by the way.  I have made sure the config file is correct.  

I understand wasting time when I can't figure something out, but this stupid stuff drive me nuts.  There is no reason for it.  No one seems to be able to get reports and report viewers right.  Microsoft's is a heaping pile of misery, and I'm about to throw Telerik's right on top of it on the pile. 

Todor
Telerik team
 answered on 10 Nov 2020
2 answers
105 views

Hello,

MyMasterReport contains 3 subreport
in the report Master I have MyMasterReport.Datasource = MyModelClass

I wold like to have this:

subreport1.Datasource = MyModelClass.List1  //List1 is a property of my class MyModelClass and is a List<myObject1>
subreport2.Datasource = MyModelClass.List2  //List2 is a property of my class MyModelClass and is a List<myObject2>
subreport3.Datasource = MyModelClass.List3  //List3 is a property of my class MyModelClass and is a List<myObject3>

so, I create MyModelClass with a lot of property, one for each datasource

I send MyModelClass  to master report, and it works:

-----------------------------

MyModelClass my_datasource_master = new MyModelClass();

master_report = new Reports.MyMasterReport();
master_report.Datasource = my_datasource_master;

--------------------------

 

How can I add MyModelClass.List1 to subreport1, etc... ?

In subreport1 I have just datasource, is myObject1 (and every subreport has indipendent datasource)

My problem is to link  MyModelClass property List1 to my subreport1 datasource.

As you suggest in your post "https://www.telerik.com/forums/set-subreport-datasource-programmatically", in MyMasterReport I create binding has the follow image, but the subreport items are empty

And after the InitializeComponent() how can I do? Can I passing a List of Object as Parameters?
------------
Help me please,
Thank you

Denis
Top achievements
Rank 1
 answered on 10 Nov 2020
1 answer
253 views

Hello,

I have a problem to add the Telerik report to existing MVC 5 web app.  Now the error is ReportAccts:1 Uncaught (in promise) Invalid clientID. I did try different approaches like scaffolding type of app, the manual one, with API and just regular MVC5 controllers but without success.

Here is the link to 7z archive which will be active for 7 days: https://fil.email/gmmr1MNl

This is simple MVC5 web project but without packages because the size of them is too big. I not found a similar one in the demo. When you run it please use the link: http://localhost:58810/Report/ReportAccts

Could you please help?

Andrey
Top achievements
Rank 1
Veteran
 answered on 09 Nov 2020
1 answer
129 views

Hi all 

 

am getting this log error but not extra information but seems to be within telereik 

 

Message :Object reference not set to an instance of an object. Stack Trace :   at Telerik.Reporting.Writing.TextLineWriter.WriteContent(DocumentWriter writer, VisualElement element, ElementPageInfo pageInfo, IPageClip pageClip)     at Telerik.Reporting.Writing.ContentItemWriter.Write(DocumentWriter writer, VisualElement element, ElementPageInfo pageInfo)     at Telerik.Reporting.Processing.ProcessingElementVisitor.Visit(LayoutElement element)     at Telerik.Reporting.Writing.DocumentWriter.Telerik.Reporting.Writing.IWriter.WriteStartElement(VisualElement element, ElementPageInfo pageInfo)     at Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler)     at Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler)     at Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages()     at Telerik.Reporting.Paging.PageCompositionBase.OutputPage()     at Telerik.Reporting.Paging.PageCompositionBase.CreatePages()     at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)     at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)     at Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)     at Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext)     at Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride()     at Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0()     at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 06 Nov 2020
5 answers
433 views

Their is multiple textbox whose vertical spacing remove and set border to some textbox for show some space in between two  then below text is cutoff.

and  I do not want to remove that boarder or want some space in between two how can I solve it ? and If some textboxes are visible false the donot want that empty space on report. Please Help me to solved it.

 

 

Mads
Telerik team
 answered on 06 Nov 2020
2 answers
310 views

I am looking to execute a stored procedure after a report has finished rendering. 

Scenrio:

Using HTML5 Report Viewer and dynamically passing the report to open in the viewer. Not all reports will execute a stored proc after report completes rendering.

If familiar with Oracle Reports this would mimic the functionality of an After Report Trigger..

Is there anyway using .net core C# code to do this in a library ?

Michael
Top achievements
Rank 1
 answered on 06 Nov 2020
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?