Telerik Forums
Reporting Forum
0 answers
284 views

Dear Telerik Team,

What I've noticed is that during rendering the Report generator doesn't (maybe for some elements only, at least DataTables) check the property Visible when planning paper length for reports in Preview and this Bug is producing the next behavior:-

For example, there is a data table with property Visible set in true in Designer code, but during the report generation, if the database query for that table gets back with Rows.Count = 0 and inside your code you set this property Visible = false (because you don't like to fill the doc with extra empty tables), and there are many such blocks inside your report, then it could be resulted to an extra blank page at the end..
I don't know how your render works exactly, but I understand it must check for some absolute locations of elements/blocks and then reserve the amount of paper sheets,
In my case, there are no blocks with absolute location.. the report should be printing as soon as a new Visible element is coming up to the entry of Renderer, so elements are populating with data and getting value for property Visible before they're rendered..

But Reporter anyway adds an extra page if it was there during the Preview Mode.
My suggestion is:
Maybe there is the reason to add a new property to a Report = say, Report.RenderStrategy = [Common] | [Dynamic] and change the strategy of rendering without planning the minimum of paper before rendering?
=====================
Sorry, if I was unclear, but I am not the Writer :) Hopefully I described the situation pretty clear for developers of the Report Component?

Роберт
Top achievements
Rank 1
 asked on 07 Jul 2018
0 answers
1.3K+ views

Hi to all,
I'm trying to create a solution console that it has generate a XLSX file from my report.
I'm using this code, it gives me an error "XLSX rendering format is not available." when execute reportProcessor.RenderReport()

Telerik.Reporting.Processing.RenderingResult EseguiReport(Telerik.Reporting.Report report, string format)
 
        {
            Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
            Telerik.Reporting.Processing.RenderingResult renderingResult =  reportProcessor.RenderReport(format, report, null);
 
            return renderingResult;
        }

 

I have already add these dll:
DocumentFormat.OpenXml version 2.8.1
Telerik.Reporting
Telerik.Reporting.OpenXmlRendering.2.7.2.dll
And added a bindingRedirect in the application configuration file for the DocumentFormat.OpenXml.dll assembly.

<dependentAssembly>
        <assemblyIdentity name="DocumentFormat.OpenXml" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.8.1.0" newVersion="2.8.1.0"/>
</dependentAssembly>

Also, i set CopyLocal property must be set to True to make sure that the proper DocumentFormat.OpenXml.dll is copied in the project's Bin folder.

LEONARDO
Top achievements
Rank 1
 asked on 06 Jul 2018
6 answers
316 views

Hi,

Imagine the following data where the xVal just contains month start dates (1 jan, 1 feb, etc) and then give it this sample data:

select convert(datetime, '1 mar 2018') as xVal, 1 as yVal, 'a' as seriesGrouping

Try to place that in a bar graph so that there is a series per seriesGrouping, the x/y set as per the column names and get it to show the month of March on the x axis.  With just one data point on the x axis the autoscaling seems to think that we want 1 label per year and shows January.  When the data set has multiple months then its fine and you get labels for each month that you have data.  Is there a way to set up the x axis so that it works for the single month case, maybe with binding?

Scott Waye
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 05 Jul 2018
4 answers
234 views

Hi,

 

We currently have Telerik_Reporting_Q2_2015 and have recently upgraded to visual studio 2017.  I can edit existing reports but it seems I can not create a new one from scratch because there is no add new item template for telerik reports any more. 

 

How can I create a new telerik report in visual studio 2017 ?

Chris
Top achievements
Rank 1
 answered on 04 Jul 2018
1 answer
658 views

Hi, 

I am using HTML5 Report Viewer in the front end, and how can we achieve toolbar component functionalities to another control. we made toolbar hide. But we are not able to give functionality like print, export etc to a new button control. In this way, our intention was to make customize toolbar design to our own. Please reply as soon as possible.

Nasko
Telerik team
 answered on 04 Jul 2018
2 answers
255 views

Hello! I have a problem: when I open a report, I get a system error: System.nullreferenceexception.  I tried to reload the app a few times. When you first open the application, everything works fine. But When I create a file, close the application, and then try to run the report, I get this error.

Please, help me!

Nasko
Telerik team
 answered on 04 Jul 2018
2 answers
142 views

HI all, I'm new to telerik report designer. I have a problem.;(

I'm doing a csv-based report. I display a table with values in the report. Then I create a new (second) table in the report based on this one, grouping and summarizing some values. How can I make a pie or a column based on my second table (when I choose to insert a piirog, I'm offered to choose datasourse, but I don't need new data. I need data from my new table in the report). Help please!hi all, I'm new to telerik report designer. I have a problem. I'm doing a csv-based report. I display a table with values in the report. Then I create a new (second) table in the report based on this one, grouping and summarizing some values. How can I make a pie or a column based on my second table (when I choose to insert a piirog, I'm offered to choose datasourse, but I don't need new data. I need data from my new table in the report). Help please!

Anastasiya
Top achievements
Rank 1
 answered on 04 Jul 2018
3 answers
4.9K+ views

Hi,

We are developing Telerik report using the stand-alone designer, so we need to know about how the sorting and filtering are done in Telerik reporting. Is it a backend or frontend process.?

Nasko
Telerik team
 answered on 04 Jul 2018
1 answer
233 views
HI I am working to a a4 specific size template however if I resize the window the items change their positions i need the items on the report to stay constant how to i force items to stay at specific locations independent of screen resolution. I can send a copy of the report but only as a private attachment if required.
Nasko
Telerik team
 answered on 04 Jul 2018
2 answers
1.6K+ views

Hi.. 

Trying to run a report and I'm getting the following error on 

    Flom2K18.Reports.TruckbookReport truckReport = new Flom2K18.Reports.TruckbookReport();

 

Any ideas?   thx!

 

The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory' threw an exception. at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp[T](String id, IConfigurationSource configurationSource) at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.NameTypeFactoryBase`1.Create(String name) at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase(String name) at Flom2K18.Reports.TruckbookReport..ctor() in C:\Flom2K18\Reports\TruckbookReport.cs:line 35System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory..cctor() === Pre-bind state information === LOG: User = JON_ALIENWARE\jon LOG: DisplayName = Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (Fully-specified) LOG: Appbase = 

Jonathan
Top achievements
Rank 1
Iron
Veteran
 answered on 04 Jul 2018
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?