When i preview a report in the Designer I get an error in a PictureBox that has some conditional formatting depending on the values from the Datasource (see attach).
It's weird because if i render this report to pdf, I get no errors (I just supply parameters to the report, I dont set any datasources).
How can I fix this in the designer?
Hi.
I need to change connection string in my reports dynamicly, sinse different users might have different databases.
I saw this article http://www.telerik.com/support/kb/reporting/details/changing-the-connection-string-dynamically-according-to-runtime-data and everything worked great, but now we have a report with sub report section. In SubReport section we have a path that depends on a value selected in the main report:
ReportSource: ="./Content/reportDefinitions/"+Replace(Parameters.ReportType.Value, " ", "_")+".trdp"
Problem is that solution suggested in the article above fails. It tries to desirialize path wich is "./Content/reportDefinitions/"+Replace(Parameters.ReportType.Value, " ", "_")+".trdp" and of cause can't find it.
I also tried to hardcode subreport name and than use Unpackage method.
var report = reportPackager.Unpackage(sourceStream);
But if I do so, I get another error. Both reports Main one and sub report depend on the same parameter ReportId, and some how subreport claims that this parameter was not passed, main section works fine.
I have made a bar graph that drills down to graphs with many labels.
A picture of the graph is attached.
As you can see, the main categories don't fit when drilled down. Also, the subcategories' labels are too long and there doesn't seem to be a way to make them multiline.
This is really a make or break for us as this graph represents pretty much the whole reason we put together this tool in the first place.
Is there anything we can do to format the graph properly?
As a workaround, is there a way to detect which bar on a graph is clicked and load another report based on the "value" associated with that particular bar?
Thanks.
I need to build a report (in Visual Studio) that takes an ObjectDataSource, and groups the data into separate pages. Each page needs to contain 2 charts and a table that deal with that particular group of data.
How can I approach this? There is some documentation on page breaks on groups in a table, but my pages need to contain charts as well. Is there a demo that shows how to build what I need?
Eventually I will also need to add this report into a ReportBook, but first things first.
a simple parent/child report (parent in header, child in detail) was changed to add a grandchild) subreport to the detail, just after the child row. in "preview" the report renders correctly. but when creating a PDF the subreport, by itself, appears on a second page.
in the PDF both pages contain the same header/footer. the first page contains the detail without subreport & the second page contains the sureport without detail.
again what's so confusing is it look fine in "preview' (using the same data).
tried setting "canshrink" to false on both report & subreport. no difference.
the report was upsided to Reporting DLL 10.2.16.1025.
any ideas?
Hello,
I recently set up a report in ASP.NET MVC. The report viewer is created using the HTML helper in the razor view. Everything works except for the date pickers for some ReportParameters and the dropdown menu for exporting the report.
When I hover/click on either of those controls I get the following JS error: elem.getClientRects is not a function
I suspect I am missing a JS file.
The JS files included in the page are (in order of inclusion):
The CSS files included are (in order of inclusion):
The ENTIRE view for the report viewer looks like:
@model Telerik.Reporting.TypeReportSource
@
using
Telerik.Reporting
@
using
Telerik.ReportViewer.Mvc
@section style {
@Styles.Render(
"~/Content/css/KendoReporting"
)
<style>
#reportViewer1 {
position: relative;
margin-left:auto;
margin-right:auto;
width: 900px;
height: 900px;
font-family: Verdana, Arial;
}
</style>
}
@section scripts {
@Scripts.Render(
"~/bundles/KendoReporting"
)
}
@(Html.TelerikReporting().ReportViewer()
.Id(
"reportViewer1"
)
.ServiceUrl(Url.Content(
"~/api/reports"
))
.ReportSource(Model)
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(
false
)
.PrintMode(PrintMode.AutoSelect)
)
And finally the bundles used look like:
//Telerik Reporting Bundles
bundles.Add(
new
ScriptBundle(
"~/bundles/KendoReporting"
).Include(
"~/Scripts/Local/ReportViewer/telerikReportViewer-11.0.17.222.min.js"
,
"~/Scripts/Local/ReportViewer/telerikReportViewer.kendo-11.0.17.222.min.js"
));
bundles.Add(
new
StyleBundle(
"~/Content/css/KendoReporting"
).Include(
"~/Content/kendo.common.min.css"
,
"~/Content/kendo.blueopal.min.css"
));
In the main view layout, the JS files are loaded FIRST in the head, then the CSS files.
Thank you!
Hello,
I have the following:
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl(Url.Content("~/api/reports"))
.ReportSource(new TypeReportSource() { TypeName = Model.AssemblyQualifiedName })
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(false)
.PrintMode(PrintMode.AutoSelect)
)
All I want to do now is add a DateTimePicker in order to edit 2 date parameters in the report. I see that there is a DateTime parameter editor but the documentation is so incredibly lacking in this aspect I have no clue how to use it.
We are thinking of purchasing reporting (and maybe others) but the documentation so far has been sub-par.
Thank you.
Hello,
I have a bar chart in my report and it is getting value from the telerik SQL, so the scenario is :
if i have data from telerik SQL =0.0002356 , then it is shown on bar, but
if i have data from telerik SQL=0.0000000, then it is showing nothing (and it should show 0 on the bar )
so, what i want on my report, if i get data less than 1 from my telerik SQL, then it should show 0 for that particular bar in the telerik report run time .(I have implemented this in SQL but there is no use of that in telerik report, because i think the report does not show value 0)
please help.