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.
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.
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?
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.
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
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.
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.
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