Telerik Forums
Reporting Forum
1 answer
128 views

I have created a Report Book with two separate reports using Report Designer. The report book and the individual reports have been uploaded to the Telerik Report Server. When previewing each individual report on the Report Server, the report displays fine. However, when I try to preview the report book, I get the error "Unable to get report parameters. An error has occurred. 'Report1.trdp' report cannot be found."

Not sure what I need to do to get this working since both are working individually. Thank you for any help you can provide.

Carson
Top achievements
Rank 1
Iron
 updated question on 10 Jul 2024
2 answers
218 views
Hey,

Is that possible to share the same page header and footer for all the reports which were added to a report book. Thanks.

David
Top achievements
Rank 1
Iron
 answered on 07 Jul 2024
1 answer
336 views
Hi Team,
I am currently supporting the .NET project [MVC] that uses Telerik.Reporting.R3.2017, HTML5ReportViewer[MVC], and .NET Framework 4.5.2 The user can get Telerik report in two ways.
1) The user can render the report [based on criteria] in the browser viewer and then use export option in the viewer to get "XLS" format. This works all fine.
2) Another way to get report is using RenderReport function of Telerik.Reporting Which created file at specific location.

When User run report in report viewer and Export to Excel (.xls) it works all fine. However, when RenderReport function of Telerik.Reporting [Which creates Excel(.xls) file at specific location], Application throws error of "XLS rendering format is not available"

Unfortunately, unable to get this work even after detailed investigation and going through same post on Telerik forum.

your assistance is much appreciated

Thanks,
Ivet
Telerik team
 answered on 05 Jul 2024
1 answer
185 views

Hi,

 does someone figure out, how is intended to "sdsx"  - shared data source should be working in single project, for designing and configuring reports?

the problem:

- designer is OK(left window at picture) and showing data = working, BUT "shared datasources \ *.sdsx" files  are displayed at WRONG tree - > at number 2. It should be at 1.

- viewer fails, complaining, that sdsx cannot be found. But is lookig at wrong folder number: 4. It should be lookig to 1. which is also 5.

structure is default from documentation:

Reports located at: ...\Reports\ *.trdp
Sources located at: ...\Reports\Shared Data Sources\ *.sdsx

 

- How to tel the VIEWER(right window at picture), to look at \Reports\Shared Data Sources\  instead only at \Reports\ for *.sdsx files?

confih at picture, with PATHS:
#region REPORTING
services.TryAddSingleton<IReportServiceConfiguration>(sp => new ReportServiceConfiguration
{
	ReportingEngineConfiguration = sp.GetService<IConfiguration>(),
	HostAppId = "BlazorWebReportDesignerDemo",
	Storage = new FileStorage(),
    ReportSourceResolver = new UriReportSourceResolver(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports")),
    //ReportSourceResolver = new UriReportSourceResolver(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports", "Shared Data Sources")),
});
services.TryAddSingleton<IReportDesignerServiceConfiguration>(sp => new ReportDesignerServiceConfiguration
{
	DefinitionStorage = new FileDefinitionStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports")),
	SettingsStorage = new FileSettingsStorage(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Telerik Reporting")),
	ResourceStorage = new ResourceStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Resources")),
    SharedDataSourceStorage = new FileSharedDataSourceStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports", "Shared Data Sources")),
    //SharedDataSourceStorage = new FileSharedDataSourceStorage(Path.Combine(sp.GetService<IWebHostEnvironment>().WebRootPath, "Reports"), new string[] { "Shared Data Sources" })
});
#endregion

 

Thanks for the tips, or how its supposed to work - with not all files in one directory.

Dimitar
Telerik team
 answered on 05 Jul 2024
1 answer
75 views

Hello,

I've been having an issue with the reporting during the exporting to PDF.
When the text is too long, there seems to be a blank space before the actual text appears. (See images)

I've tried to manipulate the width of the report, textbox, the tables and containers, but nothing seems to work.
I've also tried several properties (CanGrow, CanShrink, KeepTogether, GroupKeepTogether, etc.

Is this as expected, or is there some workaround with it?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Jul 2024
1 answer
146 views

I have a in an ASP.net Core 6 application.

When I run the app from my laptop from VS 2022, it works correctly.  It also run correctly when doing a Preview from the standalone report developer. (Telerik Report Designer v17.0.23.118)

When I try to run it from the Azure web app (using the same data source), after publishing I get an error saying parameter is not valid.  Partial trace below. 

I've verified that a valid parameter is being passed to the report. I can run the preview successfully using the same parameter value that's being used in the app.

The report was working before, but I need to make a change to the body.  The report creates a PDF of the record displayed on the web page at the time.

Has anyone experienced something like this before?  Where should I be looking for the error?

System.Exception: Parameter is not valid. at System.Drawing.SafeNativeMethods.Gdip.CheckStatus(Int32 status) at System.Drawing.Graphics.GetHdc() at
Telerik.Reporting.Pdf.PdfContext..ctor(String ownerPassword, String userPassword) at Telerik.Reporting.Pdf.PdfDocument.InitCompleted(Stream stream) at Telerik.Reporting.ImageRendering.PdfRenderingContext.InitPdfDocument(PdfDocument pdfDocument, Stream stream) at Telerik.Reporting.ImageRendering.DocumentPdf.CreateDocument(PdfRenderingContext pdfContext) at Telerik.Reporting.ImageRendering.DocumentPdf.ResolveDocument() at Telerik.Reporting.ImageRendering.DocumentPdf..ctor(PdfRenderingContext context, IMeasureContext measureContext) at Telerik.Reporting.ImageRendering.PdfReport.CreateDocument(IDictionary renderingInfo, IDictionary deviceInfo, CreateStream createStreamCallback, PageSettings pageSettings) at Telerik.Reporting.BaseRendering.DocumentRenderingExtensionBase.CreateWriter(IDictionary renderingContext, IDictionary deviceInfo, CreateStream createStreamCallback, PageSettings pageSettings) at Telerik.Reporting.ImageRendering.PdfReport.CreateWriter(IDictionary renderingContext, IDictionary deviceInfo, CreateStream createStreamCallback, PageSettings pageSettings) at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(LayoutElement root, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback, PageSettings pageSettings) at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback) at Telerik.Reporting.Processing.ReportProcessor.<>c__DisplayClass47_0.

Dimitar
Telerik team
 answered on 02 Jul 2024
1 answer
88 views

Hello,

We have recently upgraded our .net solutions/projects to .Net 8.0.

In our old version, we have a ReportsController.cs which requests into the v18 Telerik.Reports framework project, and renders the report on the front end view the TelerikHtmlViewer template.

ex/ The Report Controller 4,6 framework code working fine with Telerik.Reporting.18.0.24.305.


using Microsoft.AspNetCore.Mvc;
using Telerik.Reporting.Services;

namespace HarWAPICore.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ReportsController : APIBaseController
    {
        static readonly ReportServiceConfiguration configurationInstance =
                new ReportServiceConfiguration
                {
                    HostAppId = "MyApp",
                    ReportSourceResolver = new UriReportSourceResolver(httpContextAccessor.HttpContext.GetServerVariable()..Current.Server.MapPath("~/Reports"))
                        .AddFallbackResolver(new TypeReportSourceResolver()),
                    Storage = new Telerik.Reporting.Cache.Interfaces.IStorageProvider(),
                };

        public ReportsController(IConfiguration configuration, IWebHostEnvironment hostEnvironment,
                IHttpContextAccessor httpContextAccessor) : base(configuration, hostEnvironment, httpContextAccessor)
        {
            ReportServiceConfiguration = configurationInstance;
        }
    }
}

 

And of course there's a separate Reports Projects with all of the Report designs, Charts, etc.

-----------------------------------------------------

Now....after UPGRADING our Reports project to .Net 8 (via the Visual Studio upgrade tool) it is breaking on the Charts lib. And I found this link below that Charts is obsolete.

https://docs.telerik.com/reporting/report-items/chart-(obsolete)

Here's an example of one Exams.Designer.cs file that breaks everywhere on"Charting".


namespace MyReports
{
    partial class Exams
    {
        #region Component Designer generated code
        /// <summary>
        /// Required method for telerik Reporting designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Telerik.Reporting.TableGroup tableGroup1 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup2 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup3 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.NavigateToReportAction navigateToReportAction1 = new Telerik.Reporting.NavigateToReportAction();
            Telerik.Reporting.TypeReportSource typeReportSource1 = new Telerik.Reporting.TypeReportSource();
            Telerik.Reporting.Charting.Styles.ChartMargins chartMargins1 = new Telerik.Reporting.Charting.Styles.ChartMargins();
            Telerik.Reporting.Charting.ChartAxisItem chartAxisItem1 = new Telerik.Reporting.Charting.ChartAxisItem();
            Telerik.Reporting.Charting.ChartAxisItem chartAxisItem2 = new Telerik.Reporting.Charting.ChartAxisItem();
            Telerik.Reporting.Charting.ChartAxisItem chartAxisItem3 = new Telerik.Reporting.Charting.ChartAxisItem();
            Telerik.Reporting.Charting.ChartAxisItem chartAxisItem4 = new Telerik.Reporting.Charting.ChartAxisItem();
            Telerik.Reporting.Charting.ChartAxisItem chartAxisItem5 = new Telerik.Reporting.Charting.ChartAxisItem();
            Telerik.Reporting.Charting.ChartAxisItem chartAxisItem6 = new Telerik.Reporting.Charting.ChartAxisItem();
            Telerik.Reporting.Charting.ChartAxisItem chartAxisItem7 = new Telerik.Reporting.Charting.ChartAxisItem();
            Telerik.Reporting.Charting.ChartSeries chartSeries1 = new Telerik.Reporting.Charting.ChartSeries();
            Telerik.Reporting.TableGroup tableGroup4 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup5 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup6 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.NavigateToReportAction navigateToReportAction2 = new Telerik.Reporting.NavigateToReportAction();
            Telerik.Reporting.TypeReportSource typeReportSource2 = new Telerik.Reporting.TypeReportSource();
            Telerik.Reporting.Charting.Styles.ChartMargins chartMargins2 = new Telerik.Reporting.Charting.Styles.ChartMargins();
            Telerik.Reporting.Charting.Styles.ChartMargins chartMargins3 = new Telerik.Reporting.Charting.Styles.ChartMargins();
            Telerik.Reporting.Charting.ChartSeries chartSeries2 = new Telerik.Reporting.Charting.ChartSeries();
...
...

 

Here's what it looks like after a rebuild.

What do I do at this point ? Can my API Core projectI somehow call into my old Reports Framework project? Or is there a Telerik upgrade tool that I can download ?

Please advise...

thanks,

Bob

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Jul 2024
1 answer
98 views

Hi Team, 

I'm looking to embed a web map (DOM element) into a telerik report. I was looking at the Kendo UI export PDF method and saw it could do base64, however, it appears that the picture box interprets this as a URL instead of an image. Is there any workflow where I can use the Kendo UI pdf processor (or related kendo methods) to acquire an image or pdf to embed inside of a telerik report via reporting parameter? 

This method inspired the idea:
https://www.telerik.com/kendo-vue-ui/components/pdf-processing/

Example Webmap with related widgets (Ideally I would want to capture everything within the "mapViewDiv"):
https://livingatlas.arcgis.com/sea-ice/ 

Thanks!
-J.T. 

4 answers
872 views

Hi, currently we are using version 12.2.18.1017 of telerik reporting.

we are thinking of upgrading to the latest version since you guys have release the web designer which is really awesome.

however, we are still using VS designer to modified all the template. as far as I know, if we want to use web designer, we need to convert all templates to standalone template.

our currently project is rely on the report REST Service to get the report. we may want to switch away from the REST service or may be stay on it depends what is it offered in web designer.

So here are my questions:

1. What would be best solution for us from your perspective / expertise?

2. If we want to convert our old VS template to standalone template, how do we do it. We are using store procedure as Data source which means our old template is not parameterless (I think). What is the best way to convert them?

an example of how we import the data right now is attached in the file.

 

 

Recent update, I have managed to convert the file from our class object to trdx format. I am thinking to store it inside our DB so that we can call this format from an RESP API endpoint and present it to the html designer.

However, this template has alot funtions. not sure how would I called those functions if I am trying to access the template from a standalone designer or a html designer.

new xml file is attached.

Bob
Top achievements
Rank 1
Iron
Iron
Iron
 updated answer on 30 Jun 2024
1 answer
186 views

Hi 

we include Telerik Reporting v.6.2.12 in our System. This System will be exported (from Italy). Is Telerik Reporting subject to dual use EU or US legislation? Has it an ECCN (Export Control Classification Number) code associated?

thanks in advance for your kind reply

Daniele Perucchini

Dimitar
Telerik team
 answered on 27 Jun 2024
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?