Telerik Forums
Reporting Forum
3 answers
154 views

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

Katia
Telerik team
 answered on 02 Aug 2017
8 answers
984 views

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.

Katia
Telerik team
 answered on 02 Aug 2017
1 answer
180 views

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?

 

Katia
Telerik team
 answered on 02 Aug 2017
0 answers
70 views
I have a object like below

   
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; }
        
   }

I get my data via web api, then i want to create a pdf using telerik reporting
i wanted to bind it to a objectdatsource but it does not show all the fields inside EarningsDto it shows FristEarnings as one single field. What am i doing wrong?

Justin
Top achievements
Rank 1
 asked on 01 Aug 2017
4 answers
105 views

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

Katia
Telerik team
 answered on 31 Jul 2017
1 answer
229 views
I'm having trouble deploying a Reports Rest Service.  When I deploy it in my test environment, I am able to test the API by going to http://servername/ReportsRestService/api/reports and I get a json file listing the file formats...  When I deploy the same files to a client's server (same Host OS - Windows Server 2012 - IIS 8.5), the URI gives a 500 error with no description why.  Any ideas as to what could be going on?
Milko
Telerik team
 answered on 31 Jul 2017
1 answer
241 views

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?

Katia
Telerik team
 answered on 28 Jul 2017
2 answers
100 views

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.

 

Katia
Telerik team
 answered on 28 Jul 2017
1 answer
51 views

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

 

 

 

Katia
Telerik team
 answered on 28 Jul 2017
4 answers
257 views

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?

Katia
Telerik team
 answered on 27 Jul 2017
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?