// following example to create pdf from report template which created using standalone designer template
public class ReportsController : ReportsControllerBase
{
readonly string reportsPath = string.Empty;
private IHostingEnvironment _hostingEnvironment;
public ReportsController(ConfigurationService configSvc)
{
this.reportsPath = Path.Combine("PathWhereReportTemplatesStored", "Reports"); //concatenate the path using the OS path delimiter.
this.ReportServiceConfiguration = new ReportServiceConfiguration
{
ReportingEngineConfiguration = configSvc.Configuration,
HostAppId = "Html5DemoAppCore",
Storage = new FileStorage(),
ReportResolver = new ReportTypeResolver()
.AddFallbackResolver(new ReportFileResolver(this.reportsPath)),
};
}
[HttpGet("reportlist")]
public IEnumerable<string> GetReports()
{
return Directory
.GetFiles(this.reportsPath)
.Select(path =>
Path.GetFileName(path));
}
//https://www.telerik.com/support/kb/reporting/styling-and-formatting-reports/details/exporting-a-report-to-pdf-programmatically
[HttpGet]
public IActionResult createPdf()
{
string fileName = "report_" + DateTime.Now.Ticks + ".pdf";
// https://docs.telerik.com/reporting/report-sources-viewers
var uriReportSource = new Telerik.Reporting.UriReportSource();
// Specifying an URL or a file path
uriReportSource.Uri = reportsPath + "\\reportTemplate.trdp"; // report template designed using standalone report designer
// Optional, pass param values to report, Adding the initial parameter values
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("param1", "value"));
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("param2", "value"));
ReportProcessor reportProcessor = new ReportProcessor();
RenderingResult result = reportProcessor.RenderReport("PDF", uriReportSource, null);
// to write pdf on disc, omit if not required
using (FileStream fs = new FileStream("PathWhereYouWantToWritePdfOnDisk" + "pdfName.pdf", FileMode.Create))
{
fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
}
return File(result.DocumentBytes, "application/pdf", fileName); // in case , user clicks on link and download report
}
}

We are working on a report feature in our web app, and we are not sure if we need to be using Reporting or the Document processing.
I have attached the report template that I am trying to create in our application to this thread as an example. There are some simple tables as well as some indent formatting of data that will be needed. Our data to populate the report will be retrieved using a REST service api call.
I have started on making the report in the Telerik reporting, but I can only control page breaks through creating new groupings. Right now I have individual pages in the group headers and footers. Is this normal for creating a report that has to have page breaks?
Another issue I have run across is the ability to export the report as a word document and having the user fill in sections on their own. This is hard to do with the report tool because the sizes of the text boxes are fixed sizes when they get exported, which can cause the users not enough room to enter their text.
What are the main differences between the Reporting tool and Document Processing? I have noticed that the Reporting tool has more capabilities to display data in an appealing way, but that isn't really needed for this report.


I am attempting to add the Angular Report Viewer to and ASP.NET Zero project.
When I add
import { TelerikReportingModule } from '@progress/telerik-angular-report-viewer';
to the app.module.ts
I get the following error when starting the app.
core.js:1601 ERROR TypeError: $.blockUI is not a function
at Object.abp.ui.block (abp.blockUI.js:20)
at Object.abp.ui.setBusy (abp.spin.js:47)
at Array.<anonymous> (root.module.ts:27)
at ApplicationInitStatus.push../node_modules/@angular/core/fesm5/core.js.ApplicationInitStatus.runInitializers(core.js:3166)
at core.js:4740
at _callAndReportToErrorHandler (core.js:4883)
at core.js:4738
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388)
at Object.onInvoke (core.js:4071)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:387)
It seems related to this issue, https://support.aspnetzero.com/QA/Questions/6156.
Has anyone had any luck getting the angular report viewer working with ASP.NET Zero?


Hello,
I have a question about border style in dynamic table. See atach file. I need border only last row ( border the lower edge of the last dynamic line) Can this be set?
Adrián Petráš

I have an application that has an angular 6 client with telerik reporting viewer,and C# api server.
I have created a report with the report designer. the report has 2 dateTime parameters defined like in the picture attached.
Now, I use it in the web service data source like in the other picture.
So far so good.
I update the parameters value from my clients like in the third image.
The problem is that when I check the value that is received in my web api has month and days switched so if the day is greater than 12 the parameter value is 1/1/0001. I have tried all sorts of datepipe format changes, with no success.