Currently, we use SSRS in our ASP.NET MVC apps to automatically generate tabular, in-memory reports based on RDLC templates against SQL Server data. The PDF produced by SSRS are downloaded to the user's browser. We don't provide any report viewer components on the page. How do you do this using Telerik Reporting?
Also, do you have beginner training videos for Telerik Reporting?
Thank you.
Hi All,
I want to pass few additional parameters from the report designer to the report service each and every request.
Following is my current code.
<script type="text/javascript">
$(document).ready(function () {
// For a complete overview over all the options used to initialize Web Report Designer, check:
// https://docs.telerik.com/reporting/designing-reports/report-designer-tools/web-report-designer/web-report-designer-initialization
$("#webReportDesigner").telerik_WebReportDesigner({
toolboxArea: {
layout: "list" //Change to "grid" to display the contents of the Components area in a flow grid layout.
},
blpermision: {
isJson: 'Nom'
},
serviceUrl: "@(basePath)reportdesigner/",
report: "",
skipOnboarding: true,
// Example of passing parameters to the embedded Report Viewer used when previewing documents.
// The example below demonstrates the currently available options.
// reportViewerOptions: {
// scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
// scale: 1.0,
// templateUrl: "https://bluelotus360.co/ReportsAPI/api/reportdesginer/resources/templates/telerikReportViewerTemplate.html/",
// viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
// pageMode: telerikReportViewer.PageModes.CONTINUOUS_SCROLL
// // Further explanation about how these options effect the Report Viewer can be found at:
// // https://docs.telerik.com/reporting/embedding-reports/display-reports-in-applications/web-application/html5-report-viewer/api-reference/report-viewer-initialization
// }
}).data("telerik_WebDesigner");
});
</script>
Is there a way to tap each and every request to designer services .
Additionally i cannot over ride certain actions in report designer services. cannot override SaveResource endpoint. any idea ?
[Route("api/reportdesigner")]
public class ReportDesignerController : ReportDesignerControllerBase
{
public ReportDesignerController(IReportDesignerServiceConfiguration reportDesignerServiceConfiguration, IReportServiceConfiguration reportServiceConfiguration)
: base(reportDesignerServiceConfiguration, reportServiceConfiguration)
{
var m = reportDesignerServiceConfiguration;
// m.DefinitionStorage = new FileDefinitionStorage("~/CSR/");
}
public override IActionResult CreateDocument(string clientID, string instanceID, [FromBody] CreateDocumentArgs args)
{
return base.CreateDocument(clientID, instanceID, args);
}
[HttpPost("definitionresources/save")]
public override Task<IActionResult> SaveResource([FromQuery] SaveResourceModel model)
{
return base.SaveResource(model);
}
}
Hi,
I was trying to integrate a report in my MVC application.
In the console I m getting an error
"GET
http://localhost:55497/api/reports/resources/js/telerikReportViewer
[HTTP/1.1 404 Not Found 4ms]"
How can i fix this issue.
index.cshtml
-------------------------
@using Telerik.Reporting
@using Telerik.ReportViewer.Mvc
@{
ViewBag.Title = "Home Page";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://kendo.cdn.telerik.com/2020.1.114/styles/kendo.common.min.css" rel="stylesheet" />
<link href="https://kendo.cdn.telerik.com/2020.1.114/styles/kendo.blueopal.min.css" rel="stylesheet" />
@section styles
{
<style>
body {
margin: 5px;
font-family: Verdana, Arial, sans-serif;
}
#reportViewer1 {
position: absolute;
left: 5px;
right: 5px;
top: 40px;
bottom: 5px;
overflow: hidden;
clear: both;
}
</style>
}
<div>
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl(Url.Content("~/api/reports/"))
.ReportSource("Report1.trdp")
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(false)
.PrintMode(PrintMode.AutoSelect)
.EnableAccessibility(false)
.SearchMetadataOnDemand(false)
.Deferred()
)
</div>
@section scripts
{
<script src="@Url.Content("~/api/reports/resources/js/telerikReportViewer")"></script>
@(Html.TelerikReporting().DeferredScripts())
}
I was referring to the code from here
Good Afternoon Telerik,
I am trying to narrow my report results on a DateTime value for an entire month of results. due to it being a schedule some of the times will go into the next day (in example: 11:00 PM 11/02 Thursday to 7:00 AM 11/03 Friday) However, when I run the report. It is only showing times for 7:00 AM to 11:00 PM that night. it reversed the entry instead of it going from 11:00 PM first day to 7:00 AM next day. Is there anyway for me to fix this?
Good Morning Telerik Forums,
I have a field called "Report Ran" followed by another table with a field of [= Now()] They display correctly. However, they are two separate fields.
If I add them together into one field (example) Report Ran: [=NOW()] it displays exactly like that. Never executing the data display.
How can I get it so that I can use a one field with text and a data all within one? so that it can display as Report Ran: 12/03/2023
Thank you!
__________________________
EDIT: I solved this after posting. See solve below.
I solved my own question.. I just started playing with close brackets.
Use braces { } to encapsulate. In example: Report Ran: {=NOW()} and it will display correctly as Report Ran: 12/03/2023
Thank you!
telerik.com
.https://nuget.telerik.com/v3/index.json
and click OK.I want to choose which tool in the toolbar should display certain tools. How can I set this up? I'm using backend ASP.NET Core MVC and frontend Angular.