Telerik Forums
Reporting Forum
1 answer
239 views
Hi, I need to create a report that contains a list component. In this list I added some header information and then a table with binding data. After the table there are various textboxes. After these I have a panel which is basically my second page with static data. The first page may grow due to the table.
I need the textboxes after the table to always go to the bottom of the page. Is this possible?
I already tried with Report Book separating first part and panel with static part, but it can't alternate reports.
Maybe with PageFooter? In this case I don't know how to conditionally show it only after the first part and hide after panel with static page.
Momchil
Telerik team
 answered on 09 Feb 2024
1 answer
192 views
Looking to see what the best approach would be to integrated a graphQL data source into Telerik Reporting?  So far, wrapping it with a WebService or ObjectDataSource are options, but I am hoping that there is a more direct way.
Nikolay
Telerik team
 answered on 08 Feb 2024
0 answers
197 views

Dear community,

I have a license for Telerik_Reporting_R2_2020_SP2_14_1_20_814_DEV, I didn't use reports for long time but I have an application that requires it. I use Visual Studio Community 2022 Version 17.8.6 and tried to re-install report but I still cant find a way to include a trdp file created with Report Designer R2 2020 in my newly created ASP.NET MVC app. I had a look on the internet but still facing this problem.

Is there someone who can guide me to solve this issue.

in advance, many thanks
Ray

Raymond
Top achievements
Rank 1
Veteran
Iron
 asked on 06 Feb 2024
6 answers
1.3K+ views
Hello,

Can we load PDF file into Telerik ReportViewer?

Thank you,
Patrick | Technical Support Engineer, Senior
Telerik team
 updated answer on 05 Feb 2024
0 answers
220 views

We are experimeting a very slow perfomance when render report to xlsx format from version 17.2.23.1114 using .Net 7, render to pdf is perfect.
With Telerik 15.2.21.915 version report was fast using .net 5 

Test environment (.net 7 under linux container)
- api .net 7
- running in Linux Container. Pod Kubernetes
- nuget Telerik.Reporting (18.0.24.130)
- nuget Telerik.Reporting .OpenXmlRendering3 (18.0.24.130) with DocumentFormat.OpenXML 3.01 -DocumentFormat.OpenXml.Framework 3.0.1
- nuget Telerik.Reporting .WebServiceDataSource (18.0.24.130)
- nuget Telerik.Drawing.Skia (18.0.24.130)
- dockerfile includes next lines:
       RUN apt-get update
       RUN apt-get install -y libfreetype6
       RUN apt-get install -y libfontconfig1

We have this code to generate the report

 var reportSource = new InstanceReportSource { ReportDocument = _report };
 var reportProcessor = new ReportProcessor();
 var renderingResult = reportProcessor.RenderReport(format.ToString().ToUpper(), reportSource, null);
 var telerikReport = new DocumentResult(renderingResult);
 return telerikReport;

When we use format="XLSX" RenderReport is very low, when use PDF in the same report time is perfect.

In last versions of Telerik, 15.2.21.915, perfomance with XLSX was perfect the same API but in .net 5


What can we do?

 

Israel
Top achievements
Rank 1
 asked on 01 Feb 2024
1 answer
138 views
In the workspace preference, I have set the "Snap to grid lines" and "Snap to snap lines", but it does not show at all.
Dimitar
Telerik team
 answered on 31 Jan 2024
1 answer
350 views

In Telerik Report Designer, I am having the worst time trying to figure how to find a proper scope name to get the sum of a given expression for every dataitem processing until the end of each page.

For the sake of simplicity, my datasource only has 1 column: saleAmount.

Sample values that fit on page 1

  • 100
  • 200
  • 150

Footer running sum of page 1: 450

Remaining values that fit on page 2

  • 20
  • 30

Footer running sum of page 2: 500

According to this Telerik Reporting article, it seems I should use RunningValue(scope, Sum(Fields.saleAmount))

I've already spent a significant time trying to figure out what exactly should I use as scope parameter,

Please see the attached sample (MyPageRunningTotalSampleReport.zip)

Momchil
Telerik team
 answered on 31 Jan 2024
1 answer
188 views

Hi team support,

 

I was assigned to a project using telerik.reportviewer.webhtml Version=7.1.13.612. As of last week, someone reported a vulnerability bugs of bgColor parameter. 

I've read some articles saying that it has to be upgraded to version 11.0.17.406 (2017 SP2) or later. 
My question is, can I replace telerik.reportviewer.webhtml.dll file with the newest dll only? 
And what about the dependencies? This is the current version of .NET & MS used.

Microsoft.AspNetCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]


I have no support from the vendor built because the project was really old.
I'd appreciate any help. Thankyou.

Todor
Telerik team
 answered on 31 Jan 2024
1 answer
518 views

Hello Team,  

I have a report that contains 2 images. one jpg --> base64   and one PDF --> base64. I use expression to fill the value for the picture Box controls as shown below. 

When I run the report the PDF image is missing. I also tried to paste the B64 text, but it didn't work. I'm I missing a step?   

Using Report Designer version 17.2.23.1010.  .NET Framework 4

1 answer
291 views

I updated my front end package.json to use the Telerik Angular Report Wrapper, and the backend to use Telerik.Reporting 17.2.23.1114 trial:

"@progress/telerik-angular-report-viewer": "^20.23.1114",

 

From the browser, when trying to access the backend `ReportsController` (.Net 4.6), I get the following exception:

<ExceptionMessage>Multiple actions were found that match the request: Formats on type SynWAPI.Controllers.ReportsController GetClientsSessionTimeoutSeconds on type SynWAPI.Controllers.ReportsController Version on type SynWAPI.Controllers.ReportsController</ExceptionMessage>
<ExceptionType>System.InvalidOperationException</ExceptionType>

Now generally when I send a test request to the old version of TelerikReports (14.x) from https://MyApp01.MySite.com/MyApp/api/reports, I get the following response in the browser (however in my upgrade envir it's throwing the above exception):

[{"name":"PDF","localizedName":"Acrobat (PDF) file"},{"name":"CSV","localizedName":"CSV (comma delimited)"},{"name":"XLS","localizedName":"Excel 97-2003"},{"name":"RTF","localizedName":"Rich Text Format"},{"name":"IMAGE","localizedName":"TIFF file"},{"name":"MHTML","localizedName":"Web Archive"},{"name":"XPS","localizedName":"XPS Document"}]

 

In my Angular component html, I'm using the Telerik Wrapper:        

<tr-viewer
    [serviceUrl]="serviceUrl"
    [reportSource]="reportSource"
    [viewMode]="'INTERACTIVE'"
    [scaleMode]="'SPECIFIC'"
    [scale]="1.0"
    [templateUrl]="templateUrl"
>
</tr-viewer>

 

and my `ReportsController` on the backend (.net 4.6)

(based on https://docs.telerik.com/reporting/embedding-reports/host-the-report-engine-remotely/rest-service-report-source-resolver/use-custom-report-source-and-document-resolvers?_ga=2.110664256.43783964.1705943251-1117489418.1701363987&_gl=1*3x39f9*_ga*MTExNzQ4OTQxOC4xNzAxMzYzOTg3*_ga_9JSNBCSF54*MTcwNjExMTg5NC4yMC4xLjE3MDYxMTI5MTMuNDYuMC4w*_gcl_au*NTYzNzA2MTUwLjE3MDEzNjM5ODY. )

using System;
using System.Collections.Generic;
using System.IO;
using System.Web.Http;
using Telerik.Reporting.Cache.Interfaces;
using Telerik.Reporting.Services.WebApi;
using System.Web;
using Telerik.Reporting.Services;
using Telerik.Reporting;

namespace SynWAPI.Controllers
{
    [AllowCrossSiteJson]
    [RoutePrefix("api/reports")]
    public class ReportsController : ReportsControllerBase
    {
        [HttpGet]
        [Route("IsReady")]
        public IHttpActionResult IsReady()
        {
            return Ok("OK Dude !");
        }

        public ReportSource Resolve(string uri, OperationOrigin operationOrigin, IDictionary<string, object> currentParameterValues)
        {
            {
                var appPath = HttpContext.Current.Server.MapPath("~/");
                string reportPath = Path.Combine(appPath, @".\Reports");

                var reportPackager = new ReportPackager();
                Report report = null;
                using (var sourceStream = System.IO.File.OpenRead(reportPath))
                {
                    report = (Report)reportPackager.UnpackageDocument(sourceStream);
                }
               
                return new InstanceReportSource
                {
                    ReportDocument = report
                };
            }
        }
        
        [Obsolete]
        protected override ICache CreateCache()
        {
            return Telerik.Reporting.Services.Engine.CacheFactory.CreateFileCache();
        }
    }
}

 

I can't seem to resolve this issue. Do you have further examples online, or any advice for me here ?

 

thanks,

Bob

 

Bob
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 29 Jan 2024
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?