I was using the service in Framework 4.8 but migrating to .NET 8 and I'm trying to reference an assembly that uses some functions in the reports.
How do I reference?
he only place I found was this one but it doesn't work.
assemblyReferences Element Configuration - Telerik Reporting
I'm trying to achieve something in a report, and I'm getting nowhere and beginning to wonder whether I'm doing this all wrong.
As a data source for my report, I have a CLR object; It has the following structure (specifically the Bundle object):
public class Bundle
{
public uint BatchId { get; set; }
public uint BundleId { get; set; }
public List<BundleItem> Items { get; set; } = new List<BundleItem>();
}
public class BundleItem
{
public uint CheckNo { get; set; }
public string ReceivedFrom { get; set; }
public string Bank { get; set; }
public string Memo { get; set; }
public decimal Amount { get; set; }
public ushort AccountNo { get; set; }
public string AccountDescription { get; set; }
#if NET6_0
public DateOnly ContribDate {get;set;}
#else
public string ContribDate { get; set; }
#endif
public ushort PaymentType { get; set; }
public DateTime EntryDateTime { get; set; }
}
I'm able to instantiate that object, and want to pass it off to a report to render; it's a complicated scenario regarding how that CLR object is instantiated, so I'm not able to use something like a SqlDataSource, so I'm assuming the correct data source type to use is an objectDataSource. That side of things so far is working (as best as I can tell):
I need to build two different reports from this data: one that aggregates the BundleItems (contained in the Items property), and one that displays the list of BundleItems and their fields. I can drag-drop [= Fields.BatchId] and [= Fields.BundleId] to the report designer (I'm using VS integrated designer) and that works fine. I'm binding the datasource to the report via:
BundleReport report = new ();
report.DataSource = (object)_detailsList;
ReportViewer1.ReportSource = report;
ReportViewer1.ViewMode = ViewMode.PrintPreview;
ReportViewer1.RefreshReport();
That causes the report to open and display successfully. Success so far!
The problems I'm having are related to the List<BundleItems>; no matter what I do the ReportViewer is just (I'm guessing) calling .ToString() on the list and getting back the type name. This has left me to wonder if I'm trying to do something that's just not supported; is there a way for me to visualize a List<BundleItem> in a report directly? Does it have to be done via a sub report? I'm feeling lost - and wondering if I'm just trying to achieve something that it's not really designed for (I know the old ReportViewer WinForm control hated working with anything other than DataSets).
Any guidance is greatly appreciated!
Hi Team ,
After updating version of Telerik assemblies, Itemdatabound event[I have attached one screenshot for reference (its written in .vb file)] is getting called while creating report as well while printing report. but I don't want it to get called while I am printing report. Is there any way that I can set autopostback(in telerik report) to false in telerik report ? Or any other solution will be appreciated to call Itemdatabound event only while creating report and not while printing.
Anyone can help me ?
Kind regards,
Payal
Hi,
I am using telerik embedded angular with standalone telerik reporting.
I am editing using the standalone telerik and then attach it to the visual studio, then display it on angular.
However, every time I edit design in the standalone telerik, I need to reattach it to the visual studio everytime.
Can someone guide me on how to make all the edits in the standalone telerik is autoupdated into the visual studio as well as angular?
Thank you.
Hi,
I would like to select multiple rows in grid and than by clicking on custom action to pass them on to report and show them as available values for report parameter.
Are there any working examples of this behavior? I'm using ASP.NET Core UI, working on .NET 5.0.
Hai, I want to use Telerik embedded with Angular in project development. I already try following precisely steps below :
https://www.telerik.com/blogs/embedding-beautiful-reporting-angular-applications
However, it seems several error had popup when i try to run the angular. The error are as shown :
Build at: 2021-12-20T07:08:01.911Z - Hash: c9bbf7e71573f59f - Time: 6282ms
Error: src/app/app.component.html:11:10 - error TS2339: Property 'ready' does not exist on type 'AppComponent'.
11 [ready]="ready"
~~~~~
src/app/app.component.ts:6:16
6 templateUrl: './app.component.html',
~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AppComponent.
Error: src/app/app.component.html:12:25 - error TS2339: Property 'viewerToolTipOpening' does not exist on type 'AppComponent'.
12 [viewerToolTipOpening]="viewerToolTipOpening"
~~~~~~~~~~~~~~~~~~~~
src/app/app.component.ts:6:16
6 templateUrl: './app.component.html',
~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AppComponent.
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
× Failed to compile.
Can somebody help me? Thank you.
Hello everyone,
I have a problem with my Web Report Designer project. On my local machine everything works fine but when i deploy it on the IIS serve, I receive this error:
http://localhost/reportdesigner/resources/js/telerikReportViewer/ net::ERR_ABORTED 500 (Internal Server Error)
WebReportDesigner:40 GET http://localhost/reportdesigner/designerresources/js/webReportDesigner/ net::ERR_ABORTED 500 (Internal Server Error)
WebReportDesigner:39 GET http://localhost/reportdesigner/resources/js/telerikReportViewer/ net::ERR_ABORTED 500 (Internal Server Error)
WebReportDesigner:40 GET http://localhost/reportdesigner/designerresources/js/webReportDesigner/ net::ERR_ABORTED 500 (Internal Server Error)
WebReportDesigner:44 Uncaught TypeError: $(...).telerik_WebReportDesigner is not a function
at HTMLDocument.<anonymous> (WebReportDesigner:44)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.K (jquery.min.js:2)
(anonymous) @ WebReportDesigner:44
i @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
K @ jquery.min.js:2
This is my Index.cshtml
<head>
<title>Web Report Designer</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap" rel="stylesheet">
</head>
<body>
<div id="webReportDesigner">
loading...
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2020.3.1118/js/kendo.all.min.js"></script>
<script src="/api/reportdesigner/resources/js/telerikReportViewer/"></script>
<script src="/api/reportdesigner/designerresources/js/webReportDesigner/"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#webReportDesigner").telerik_WebReportDesigner({
toolboxArea: {
layout: "list"
},
serviceUrl: "/api/reportdesigner",
report: "20201130 Partner Commissions.trdp"
}).data("telerik_WebDesigner");
});
</script>
</body>
This is my controller :
{
[Route("api/reportdesigner")]
public class ReportDesignerController : ReportDesignerControllerBase
{
public ReportDesignerController(IReportDesignerServiceConfiguration reportDesignerServiceConfiguration, IReportServiceConfiguration reportServiceConfiguration)
: base(reportDesignerServiceConfiguration, reportServiceConfiguration)
{
}
}
}
I would appreciate if anyone could help me. Thanks and have a nice day!
I forgot to mention, I am a beginner with Telerik reporting and everything related to it.
Hi,
We are using Telerik Reporting Rest service project in our server-side and as a report viewer we use HTML5 report viewer. There is server project (console app) which run the Telerik Reporting service. We defined CancelKeyPress (Ctrl+C) to close the console app. If we press Ctrl+C it will close successfully. Before closing if we make a request to http://localhost:5000/api/reports/formats using postman or browser then it will NOT close (See picture Server app after request.PNG). So, it says "Application is shutting down..." and it stays opened.
How to fix this issue?
You can use the attached demo project (ReportingServiceDemo.zip) to reproduce this issue. Startup project should be ServerConsole project which use CSharp.Net5.ReportingRestServiceCorsDemo project.
Thank you.