Hello,
I try to update my Telerik Reports from Q2 2015 to R2 2017. With my report books I have massive problems to get the data into the report.
My code so far (working perfect in Q2 2015) for ReportBook creation:
ReportBook trbReport =
new
ReportBook ();
// Instances of Telerik Report for Report Book
TPage1Report reportPage1 =
new
TPage1Report;
TPage2Report reportPage2 =
new
TPage2Report;
// Add Reports to ReportBook
trbReport.Reports.Add (reportPage1);
trbReport.Reports.Add (reportPage2);
// Add Datasources to report pages
ReportDatasourceClass1 ds1 =
new
ReportDatasourceClass1 ();
ReportDatasourceClass2 ds2 =
new
ReportDatasourceClass2 ();
trbReport.Reports[0].DataSource = ds1;
trbReport.Reports[0].DataSource = ds2;
And in code behind of the Report itself (I have a Table in the Detail Section, which datasource should be a list in the Reports datasource):
private
void
detail_ItemDataBinding (
object
sender, EventArgs e)
{
ReportDatasourceClass1 data = DataSource
as
ReportDatasourceClass1;
// Set Datasource of Telerik.Reporting.Table in Report to List Property
// in Datasource of report
tTable.DataSource = data.List1;
}
This is not working anymore in R2 2017: The Table in the Report is empty and in the second page I have some graphs, which datasources are also set in DetailItemDataBinding, which are also empty.
The Reports Property of ReportBook is marked as obsolete, so I tried ReportSources.
Problem 1: ReportSources has no property "DataSource". My way to set the DataSource of my report pages is impossible.
Problem 2: The Parameters Section of the ReportSources entries are empty (not filled with the parameter lists from the Reports.
So I tried the following to fix that behaviour:
TPage1Report page1 =
new
TPage1Report ();
page1.ReportParameters[
"param1"
].Value = param1Value;
page1.DataSource = page1DataSourceInstance;
trbReport.ReportSources.Add (page1);
TPage2Report page2 =
new
TPage2Report ();
page2.DataSource = page2DataSourceInstance;
trbReport.ReportSources.Add (page2);
Now in the DetailItemDataBinding my datasource is present, but in the rendered Report the List and Graphs still empty.
Has someone solved the ReportBook Datasource in 2017 R2 yet (I used this above method successfully since 2009)?
Greetings
Thomas
How can we split a table with hundreds of records on multiple pages, using the latest telerik reporting? I don't want a very html page, which contains the entire table, with a vertical scroll bar.
Thanks in advance.
Hello, im having some issues with the report designer, im developing a report that has quite a lot of graphs and everytime i try to open the report devenv.exe hangs at 99% processor usage, and i know its because the graph previews, is there any way to disable the previews? or can you give me some workaround?
public class MyCheckDto
{
public string ErrorMessage { get; set; }
public IEnumerable<
EarningsDto
> FristEarnings { get; set; }
public IEnumerable<
EarningsDto
> AnotherEarnings { get; set; }
}
public class EarningsDto
{
public decimal Field1 { get; set; }
public decimal Field2 { get; set; }
}
Hi there. im in trial version. i plan to buy telerik devcomplete version. But my company using asp.net core framework netcoreapp 1.1. i try to use telerik reporting. but its not working for this framework. my company not allow to use .net framework 4.6.
Please advice me.
thank you
For our application we store reports externally. When a user wishes to edit a report, we create a temporary .trdx file, then pass the location of that file as a parameter to the Report Designer exe. When finished, we process any changes and then remove the temporary file.
When the user closes Report Designer, it asks if they want to reopen that document the next time. Since the document is a temporary file that will be removed, they cannot reopen it next time and this question could cause confusion.
To prevent this, we would like to make it so the option "Preserve open windows on exit" is set to "Never" by default. But even after adding it an application or user setting of "Never" in Telerik.ReportDesigner.exe.config the Report Designer creates a new user.config file with the value of "Ask".
How can we set it so that this value is "Never" by default? Is there a parameter we can pass when calling the exe?
hi Team,
please let us know can we expand/collapse report parameter if we have n number of parameter values. Currently we having scroll bar, but client is looking for expand/collapse for report parameters.
Hello,
I have large no of fields to show in telerik report. but when I try to run that report it through error of stackover flow.
My fields contain dynamic data. Kindly requested to provide me proper solution for that.
In report there are 12 tables, approximately 600 textbox having dymanic data and more than 500 contain static text.
Thanks & Regards,
Ankita
I have a bar chart on my report with hours of the day on the Y-axis. See the attached image. Instead of displaying 1-24 I would like it to display , etc
Is there a way to custom format these labels?