Hi,
We have a scenario where we need to render the report in multiple worksheets(sheets) within a excel (xlsx) file. We are successful in generating such report when rendered through the desktop client and also in Report Viewer, but when trying to generate the file using Telerik.Reporting.Processing.ReportProcessor.RenderReport() method, the data is not splitted in to two sheets. Everything is rendered in single sheet.
The way I am rendering the report is simple -
var reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
var manager = new ReportConnectionStringManager(connectionString);
ReportSource reportSource = manager.UpdateReportSource(uriReportSource);
var result = reportProcessor.RenderReport("XLSX", reportSource, null);
and in the report design, we are using SplitWorksheetOnPageBreak property.
Please help us in achieving what we want. Is there any other way to render the report.
Thanks,
Jyothi
Hi every one,
I have to, only show PDF in download list in angular report viewer, I found this list returned from this api
I also found answer in
https://www.telerik.com/forums/180100-export-only-in-pdf-format-possible
and to setup Telerik configurations
https://docs.telerik.com/reporting/doc-output/configure-the-report-engine/overview
My question is, I follow above link to setting up Telerik configuration in appsetting.json but still unable to show only PDF as my purpose, does any one have any example of json file or I missed something else.
Thanks and appreciate.
I want to get the Height of the TextBox on the right of my Vertical Line. I was thinking of using Bindings and Value but I dont know how I can do it.
Hi,
I have report xml data previously produced with Telerik Windows Designer in my database. That is the xml version of the report.We have many Telerik reports that are fed from SQL Server stored procedures, some of which pull from columns with a type of decimal(38,18) (SQL's max). The system that interacts with these reports uses C# and we limit the values for those columns to 28 significant figures (C#'s max).
For example, these values would not be supported by our system:
While these would be:
We're running into some "Conversion overflows" errors with numbers that have <= 28 significant digits, which after troubleshooting we found to be occurring in Telerik's internal SQL processing, specifically in the System.Data.SqlClient library. Which has this ticket logged: https://github.com/dotnet/SqlClient/issues/95
Our system uses Microsoft.Data.SqlClient, which correctly handles truncating trailing zeros.
Is there any option for Telerik using the Microsoft.Data.SqlClient library rather than the System.Data.SqlClient library or any other workaround available for this issue?
Here is the full stack trace:
System.OverflowException: Conversion overflows.
at System.Data.SqlClient.SqlBuffer.get_Decimal()
at System.Data.SqlClient.SqlBuffer.get_Value()
at System.Data.SqlClient.SqlDataReader.GetValues(Object[] values)
at Telerik.Reporting.Processing.Data.SqlDataEnumerable.ReadValues(IDataReader reader)
at Telerik.Reporting.Processing.Data.SqlDataEnumerable.GetEnumerator()+MoveNext()
at Telerik.Reporting.Processing.Data.LazyList`1.LazyListEnumerator.MoveNext()
at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
at Telerik.Reporting.Processing.Data.SeedDataAdapter.Execute(IEnumerable`1 data)
at Telerik.Reporting.Processing.Data.ResultSetAdapter.Execute(IEnumerable`1 data)
at Telerik.Reporting.Processing.Data.MultidimentionalDataProvider.Execute(MultidimensionalQuery query)
at Telerik.Reporting.Processing.DataItemResolveDataAlgorithm.GetDataCore(IDataSource dataSource, MultidimensionalQuery query, IServiceProvider serviceProvider, EvalObject expressionContext, IProcessingContext processingContext)
at Telerik.Reporting.Processing.Report.GetDataCore(IDataSource dataSource, MultidimensionalQuery query)
at Telerik.Reporting.Processing.DataItemResolveDataAlgorithm.ResolveData(String processingId, InMemoryState inMemoryState, MultidimensionalQuery query, Func`1 getDataCore, EvalObject expressionContext)
at Telerik.Reporting.Processing.Report.ResolveData()
at Telerik.Reporting.Processing.Report.ProcessItemCore()
at Telerik.Reporting.Processing.Report.ProcessItem()
at Telerik.Reporting.Processing.ReportItemBase.ProcessElement()
at Telerik.Reporting.Processing.ProcessingElement.Process(IDataMember dataContext)
Hi support team,
Currently I have 3 reports called A, B, C with format *.trdp
I used CustomReportResolver to bind datasource for these reports. The problem is I have to use if else condition to know which report is A or B or C to get and bind correct data to the report. Imagine I have 100 reports it will be nightmare for me.
Do we have any way to resolve this or any way to get data source at run time for Standalone Report except the way I described above ?
NOTE: Before I used Visual Studio Report Designer and use NeedDataSource event in each report to get data for them now I have this issue when migrate to Standalone Report Designer.
Example Code:
public ReportSource Resolve(string reportId, OperationOrigin operationOrigin, IDictionary<string, object> currentParameterValues) { var reportPath = Path.Combine(this.ReportsPath, reportId); var reportPackager = new ReportPackager(); Report report = null; using (var sourceStream = File.OpenRead(reportPath)) { report = (Report)reportPackager.Unpackage(sourceStream); } if (reportId == "A") { if (operationOrigin == OperationOrigin.GenerateReportDocument) { report.DataSource = GetDataForReportA(); } } else if (reportId == "B") { if (operationOrigin == OperationOrigin.GenerateReportDocument) { report.DataSource = GetDataForReportB(); } } else if (reportId == "C") { if (operationOrigin == OperationOrigin.GenerateReportDocument) { report.DataSource = GetDataForReportC(); } } return new InstanceReportSource { ReportDocument = report }; }
Thanks
Hi,
I have a ReportViewer in WPF where I display a Report Book with Bookmarks.
I have set DocumentMapVisible="False" but still the ReportViewer srtarts with visible DocumentMap.
Do I have to set another value?
Because I set the Report Source programmatically I have also tried to set the DocumentMapVisible to false there again but it changes nothing.