I'm using Telerik Reporting for an MVC app and I have a requirement to print payroll checks. I don't need to recreate the entire check, I just need to fill in data in the check for date, amount, etc., in the appropriate areas on the check.
The payroll checks are on 8.5 x 11 sheets with three checks per sheet, vertically (top to bottom). Therefore, I need to be able to create a report that allows me to basically limit each page to three rows of data, each row representing an individual check. How do I go about doing this? I tried putting a particular field in the detail section three times, but, of course, it just prints the contents of the field three times. It's almost as if I need three detail sections per page (one detail section per check), but I don't see that Telerik Reporting supports that.
Hi,
How can I create a table report with 100 fields across that does not necessary fit into the report?
I do not care to print such a report, except only to save as an excel doc after it renders.
Currently I have memory exception when i run the report.
Can someone help me please?
Thanks,
Ali.
Hi,
I've just create an ASP.NET MVC application with report viewer for ASP.NET MVC.
Everything is working fine but the only issue is currently that if I open the web page from a tablet I can't scroll the report up and down by swiping with the finger.
I've seen that within the div where the report is displayed and so where the scrollbars come up there is the style "touch-action: none" hardcoded: by using the debug tools i've changed the value of the property to "auto" and the swipe with the finger then works.
How I can do it with a javascript function? I tried by catching the RenderingEnd event and by "jquery $(".trv-page-wrapper").css("touch-action", "auto");" without success...
Please help me...
Thx.
Luca
Hi All,
I have a .Net Core + AngularJS project using Kendo UI. And now I want to use Telerik Reporting for reports. But I'm facing an issue with the integration. When I include the javascript file : ReportViewer/js/telerikReportViewer.kendo-11.1.17.614.min.js, the existing application is not working anymore. The existing application is using kendo.all.min.js version : v2017.1.330.
Thanks,
I just right click on the report table in visual studio report designer and choose insert column.
It's just a blank column, with no logic.
When i run the report, it throw the following exception:
"message":"","exceptionMessage":"Object reference not set to an instance of an object.",
"exceptionType":"Telerik.Reporting.Services.Engine.DocumentRenderException","stackTrace":"
at Telerik.Reporting.Services.Engine.Document.GetDocumentInfo()
at Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetDocumentInfo(String clientID, String instanceID, String documentID) in c:\\temp\\reporting\\RBuild-28199\\Reporting_Build\\Source\\Code\\Telerik.Reporting.Services.WebApi\\ReportsControllerBase.cs:line 291
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeUsingResultConverterAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown --
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.ApiController.<InvokeActionWithExceptionFilters>d__1.MoveNext()"}
This exception just throw to web client and visual studio debugger and intellitrace can't record it.
I can see that there are some files have written in the report folder on the hard disk drive.
After removing that column from my report, everything work fine.
Can anyone explain why this happen and how can i fix this?

Hello Telerik team!
I have a simple wpf report where there are detail section and report header. When report had been generated, an empty space appeared between them. I've tried to change this behavior by moving header items to detail section or by creating a sub report from detail section items. Also I've tried to set KeepTogether option in false condition where it was possible in detail section, but it had no effect.
If I use preview mode, everything is fine. I've colored every element in the report to see whether it grew up or not. But all of them seem to be fine. What can I do to avoid this problem? I've attached some screenshots with the report.
I will really appreciate if you can help me to figure this behavior out.
Reporting 8.1.14.804
Using HTML Viewer, implemented reporting api and report renders perfectly. In the api I am using a customreportresolver so I can pass url parameters that control the report sorting and filtering.
After the report initially renders if I hit refresh the first time I get an error:
Error creating report document (Report = ItemReport?key=12345&sortBy=0&allDates=true&ReportTitle=it works!; Format = HTML5Interactive):
Report instance with ID '082320-e65f' not found.
A second click of refresh renders the report correctly with no error.
Tracing through the custom resolver shows it executes without an error on the refresh request.
The report controller:
Protected Overrides Function CreateReportResolver() As Telerik.Reporting.Services.Engine.IReportResolver
Return New CustomReportResolver
End Function
The custom resolver:
Public Function Resolve(reportId As String) As Telerik.Reporting.ReportSource Implements Telerik.Reporting.Services.Engine.IReportResolver.Resolve
Dim theReport = reportId.Substring(0, reportId.IndexOf("?"))
Dim rpt As Object = Nothing
Select Case theReport
Case "ItemReport"
rpt = New Reports.ItemReport
End Select
Dim queryString As String = reportId.Substring(reportId.IndexOf("?") + 1)
Dim params As NameValueCollection = HttpUtility.ParseQueryString(queryString)
For Each k As String In params
rpt.ReportParameters(k).Value = params(k)
Next
Dim sb As New StringBuilder
Using xmlWriter As System.Xml.XmlWriter = System.Xml.XmlWriter.Create(sb)
Dim xmlSerializer As New Telerik.Reporting.XmlSerialization.ReportXmlSerializer()
xmlSerializer.Serialize(xmlWriter, rpt)
End Using
Dim reportSource As New Telerik.Reporting.XmlReportSource()
reportSource.Xml = sb.ToString
Return reportSource
End Function
Hi,
I want to convert the rendering of one field when exporting to HTML from just text to an HTML Input tag, is that possible?
Thanks,
Scott
Hi, we are developing a asp.net mvc application and we are using the Telerik Reporting and HTML5 Viewer (and javascript). Everything works fine when we use our "trdp" or "trdx" report files on the file system and we get the report on the page access a database and showing some data.
Now, we are changing how we store the files on the system and we are going to a cloud storage environtment where all files will be on the cloud, including the trpd report files. It also could be stored on the database. We are using the InstanceReportSource to get the report object as byte array (from cloud or database) like this:
// get the stream for trdp report filevar reportStream = GetReportStreamFromCloud(...); var reportDocument = (Telerik.Reporting.Report) reportPackager.UnpackageDocument(reportStream);// check for subReports to replace it dynamically (code bellow here..)var instanceReport = new InstanceReportSource() {ReportDocument = reportDocument};return instanceReport;
It works fine when it is a simple report without subReports. The problem is when we have subReports and we try to set it dynamically as a byte array using InstanceReportSource and this SubReport has parameters (independently if it comes from main Data Source or from main Report Parameters). The code bellow is how we set the subReport:
foreach (var sections in reportDocument.Items.Where(x => x is DetailSection || x is GroupSection)){ foreach (var item in sections.Items.Where(x => x is SubReport)) { var subReport = (SubReport) item; // get the Stream for trdp subreport file. var subReportStream = GetReportStreamFromCloud(...); // unpack the report Stream var subReportDocument = (Telerik.Reporting.Report) reportPackager.UnpackageDocument(subReportStream); var instanceSubReport = new InstanceReportSource() {ReportDocument = subReportDocument}; subReport.ReportSource = instanceSubReport; }}How can we pass the parameters to the subReport dynamically?
Thank you.