Following these guide:
https://www.telerik.com/blogs/telerik-reporting-and-aspnet-core
https://docs.telerik.com/reporting/html5-report-viewer-asp-net-core-2
to create a REST service for Telerik Report, but whatever I do, I have always get this error:
Am I missing something?
I've followed the instructions in the documentation for setting up a the MVC Report Viewer in my ASP.NET MVC web application. The app path maps to "~/Reports", and in the root of my project I have a folder named 'Reports' which contains the SampleReport.trdp. I believe I have all the other configuration in place (Global.asax, web.config etc.).
How do I view this sample report? What is the URL for viewing any reports? The documentation is very minimal, are there any tutorials for setting up Telerik reporting in an MVC app?
Hi,
I use the asp.net webforms viewer and set the report by setting
reportViewer1.ReportSource.Identifier = reportFile;
I have a controller which uses a custom resolver
public class ReportsController : ReportsControllerBase
Apparently this page uses the REST service to load the report but how does it know what url to use for the service? I haven't configured this explicitly as far as I can see so it seems to be hardcoded/defaulted?
Hi,
Currently, we have 4 options (Header, Query, Inline, Cookies) for setting parameters in Http request of web serviced data source. Using these options we are able to set report parameter as the parameters for the Http request of web serviced data source. Instead of that how can we pass parameter inside the body of Http request? Current we are able to send parameter inside the body statically. Is have any other way to bind the value of the parameter inside the body from report parameter.
I'm trying to achieve the result in the attached file.
I have gone through the documentation and I cannot see anything which can help me. The only things I could find were for RadChart.
I'm using Q1 2016 SP1 (with no option to currently update)
Is this possible in the Telerik Reporting framework?
Hello!
Could i configure the same multiple grouping and blue dash line on Graph? If yes, how i can do this?
Please look at attached image
Thanks!
/// <
summary
>
/// Can only shrink content within the Report.ItemDataBinding Event
/// </
summary
>
/// <
param
name
=
"pageHeader"
></
param
>
/// <
param
name
=
"debug"
></
param
>
public static void ShrinkToContent(this Telerik.Reporting.PageHeaderSection pageHeader, double paddingBottom=0.02D, bool debug=false)
{
var items = pageHeader.Items.OfType<
Telerik.Reporting.TextBox
>().Where(x => x.Visible).OrderBy(x => x.Top.Value).ToList();
double threashold = 0.02;
foreach (Telerik.Reporting.TextBox tx in items)
{
tx.CanGrow = false;
if (string.IsNullOrEmpty(tx.Value))
{
// shuffle items beneth this textbox
foreach (Telerik.Reporting.TextBox item in items.Where(x => x.Visible && x.Top.Value > tx.Top.Value && tx.Left.Value <
x.Right.Value
&& x.Left.Value < tx.Right.Value))
{
//
item.Location
=
new
Telerik.Reporting.Drawing.PointU(item.Left, item.Top.Subtract(tx.Height));
item.Top
= item.Top.Subtract(tx.Height);
if (debug)
{
// blue means shiffted
item.Style.BackgroundColor
=
System
.Drawing.Color.Blue;
}
}
tx.Height
=
Telerik
.Reporting.Drawing.Unit.Zero;
tx.CanShrink
=
true
;
//
tx.Style.BackgroundColor
=
System
.Drawing.Color.Black;
}
}
var
stacked
=
items
.OrderByDescending(x => (x.Height.Value <= threashold) ? 0 : x.Bottom.Value).ToList();
var lowest = stacked.FirstOrDefault();
// TODO
// If we have a bottom alignment ensure that its bumped up and still on the bottom
// Colapse between lowest and next above in vertical stack
double oldHeight = pageHeader.Height.Value;
double newHeight = lowest.Bottom.Value;
if (newHeight < (oldHeight + threashold))
{
if (debug)
{
pageHeader.Style.BackgroundColor = System.Drawing.Color.Yellow;
}
pageHeader.Height = Telerik.Reporting.Drawing.Unit.Inch(newHeight + paddingBottom);
}
}