Enable retaining editable textboxes when Exporting to PDF.
For example a PDF Re-order form with editable textboxes for order Quantity so the user can enter order Quantities.
Telerik.Reporting.Services.HttpClient version
17.2.23.1114
references a bad version of
Microsoft.IdentityModel.Clients.ActiveDirectory
That has inconsistent references as can been seen from this error (from System.Private.DataContractSerialization 4.1.1)
##[error]src\Cms.Wpf\Cms.Wpf\Cms.Wpf.csproj(0,0): Error NU1605: Warning As Error: Detected package downgrade: System.Text.Encoding.Extensions from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version. Demurrage -> Telerik.Reporting.Services.HttpClient 17.2.23.1114 -> Microsoft.IdentityModel.Clients.ActiveDirectory 3.14.0 -> System.Runtime.Serialization.Json 4.0.2 -> System.Private.DataContractSerialization 4.1.1 -> System.Xml.ReaderWriter 4.0.11 -> System.IO.FileSystem 4.0.1 -> runtime.win.System.IO.FileSystem 4.3.0 -> System.Text.Encoding.Extensions (>= 4.3.0) Demurrage -> Telerik.Reporting.Services.HttpClient 17.2.23.1114 -> Microsoft.IdentityModel.Clients.ActiveDirectory 3.14.0 -> System.Runtime.Serialization.Json 4.0.2 -> System.Private.DataContractSerialization 4.1.1 -> System.Text.Encoding.Extensions (>= 4.0.11)
This results in a publish failure with .net 8 where warning are treated as errors by default when publishing.
A workaround is to add<NoWarn>NU1605</NoWarn>
The following exception can be thrown when setting the Value of a PictureBox to an invalid type:
System.ArgumentException: You can assign System.String, IImage, System.Drawing.Image or SkiaImage objects only.
at Telerik.Reporting.PictureBox.set_Value(Object value)
This is misleading because an object of type System.Drawing.Image is not supported when using the Skia graphics engine. Passing an SKImage does not work either due to an error in the processing stage.
If you need to use a System.Drawing.Image object or an SKBitmap instance, you can take advantage of the DrawingFactory class.
After updating the Telerik Reporting packages to v17.2.23.1010 and opting out to still use the Gdi graphics engine, when I attempt to render a report to PDF on Linux, the rendering fails with the following error:
Error: 0 : An error occurred while rendering the report in separate thread: System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Reporting.Paging.PageCompositionBase.<>c__DisplayClass87_0.<CreatePages>b__0()
at Telerik.Reporting.Paging.PageCompositionBase.CreatePages()
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.Services.Engine.ReportRenderer.Render(ReportRendererArgs args)
at Telerik.Reporting.Services.Engine.Rendering.RenderWithCulture(ReportRendererArgs args)
at Telerik.Reporting.Services.Engine.Rendering.ThreadFunc(Object o)
The native Angular Report Viewer does not expose a 'setReportSource' or similar method that can be used to update the reportSource object of the viewer after initialization.
This means that the parameters or the report loaded by the viewer cannot be changed in code and I have to expose the report parameters and use Navigate To Report actions for loading different reports.
Previously, the Processing.PictureBox property Image required a System.Drawing.Image.
Starting with R3 2023 it requires Telerik.Drawing.IImage, and throws the exception:
Cannot implicitly convert type 'System.Drawing.Image' to 'Telerik.Drawing.IImage'. An explicit conversion exists (are you missing a cast?)
The Upgrade Wizard throws an error when upgrading projects containing reporting-related JS/CSS/etc. report viewer files. For example:
Could not find file 'C:\Program Files (x86)\Progress\Telerik Reporting R3 2023\Html5\ReportViewer\js\telerikReportViewer.kendo-17.2.23.1010.min.js'.
The files in question are present in the expected directory but they no longer have the version number suffix in their names ('-17.2.23.1010' in the example above). Copying the files and adding the suffix to the copies resolves the issue.
Output with Skia in Linux Docker:
Expected output (Skia/GDI in Windows):
I am rendering Telerik reports (version 17.2.23.1010) with custom code on Linux Docker in .NET 7 with SkiaSharp. When I have Grouping in the Report, I receive the following exception:
An unhandled exception has occurred while executing the request. System.PlatformNotSupportedException: System.Drawing.Common is not supported on this platform. at System.Drawing.ToolboxBitmapAttribute..ctor(Type t, String name) at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder`1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1 derivedAttributes) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at System.Attribute.GetCustomAttributes(MemberInfo element, Type attributeType, Boolean inherit) at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type) at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetAttributes() at System.ComponentModel.TypeDescriptor.DefaultTypeDescriptor.GetAttributes() at System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType) at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetConverter(Object instance) at System.ComponentModel.TypeDescriptor.DefaultTypeDescriptor.GetConverter() at System.ComponentModel.TypeDescriptor.GetConverter(Type type) at System.ComponentModel.PropertyDescriptor.get_Converter() at Telerik.Reporting.Serialization.ObjectReader.ReadProperty(Object obj, PropertyDescriptor prop, Type propType) at Telerik.Reporting.Serialization.ObjectReader.ReadProperties(Object obj) at Telerik.Reporting.Serialization.ObjectReader.ReadObject(Type type) at Telerik.Reporting.Serialization.ObjectReader.ReadXmlElement(String name) at Telerik.Reporting.Serialization.ObjectReader.ReadCollection(Object collection) at Telerik.Reporting.Serialization.ObjectReader.ReadProperties(Object obj) at Telerik.Reporting.Serialization.ObjectReader.ReadObject(Type type) at Telerik.Reporting.Serialization.ObjectReader.ReadXmlElement(String name) at Telerik.Reporting.Serialization.ObjectReader.Deserialize(IResourceHandler handler) at Telerik.Reporting.XmlSerialization.XmlSerializerBase.Deserialize(XmlReader reader, IResourceHandler resourceHandler) at Telerik.Reporting.XmlSerialization.XmlSerializerBase.Deserialize(Stream stream, IResourceHandler resourceHandler) at Telerik.Reporting.XmlSerialization.ReportXmlSerializer.Telerik.Reporting.ReportSerialization.IXmlSerializer.Deserialize(Stream stream, IResourceHandler resourceHandler) at Telerik.Reporting.ReportPackager.UnpackageDocument(Stream packageStream)
Without Grouping the report is rendered fine on Linux.
On Windows, everything runs fine as well.
Since R3 2023, all HTML5IntegrationDemo examples found in the Telerik Reporting installation directory (C:\Program Files (x86)\Progress\Telerik Reporting R3 2023\Examples\CSharp) target .NET 6.
To work around the issue, open the .csproj file of each demo and set the target framework to the corresponding version.
Adding a custom font as PrivateFont in the appssettings.json is not respected.
When the font is installed, it works also for the report in the viewer.
The issue may be reproduced with the Reporting WinUI example for .NET 6.
The Stack Trace states:CSharp.Net6.WinUIIntegrationDemo Warning: 0 : A font family for font "MICR" cannot be found. Exception: Font 'MICR' cannot be found. Font 'MICR' is substituted with font 'Microsoft Sans Serif'.
I have a Multivalue Report Parameter in the report that gets fed by a data source and may have more than 1000 selectable values. It is a ComboBox.
When I search and select a value from the dropdown, the selected value may not be passed with the reportSource of the viewer if I click directly the Preview button, without clicking outside the selection popup first. The issue occurs randomly. If I click outside the popup first, the values are passed correctly. I cannot reproduce the issue with less selectable items.
On .Net 6, exporting html5 produces multiple html files including a single report having multiple pages are split into multiples. Could we please have the feature similar to MHTML export in the previous .net versions supported. This is a breaking change when upgrading to .Net 6.
Thanks!
It would be nice if we could subscribe to events such as
I had a report book with only a TOC report and when I previewed it, I was met with an "Object reference not set to an instance of an object" exception which did not make it clear what was causing the issue losing me a lot of time in debugging.
Once I added a report to my ReportBook the issue was resolved, however, the error message should be more meaningful.
Need to allow Excel Export with 10.1.16.615 version on FIPs enbled
Hi Team,
I had tried with the provided post as below with DocumentFormat.openXML.dll verison (2.5) but not working .
please help to resolve this ASAP.
===
Based on what you described and the ticket info, I am assuming that you are getting this error when you render a report in the Excel 97-2003 (XLS) format. Is that correct?
Unfortunately, this is a known limitation of the Excel 97-2003 rendering, and exporting a report to XLS in FIPS-enabled environments will fail. Considering this, I suggest choosing one of the following options for exporting reports to Excel:
If choose the first option, you can disable the older Excel rendering format so that it is not available as an option when the report is displayed in a report viewer. For example, the following code can be put into the web.config/app.config of the project:
<configuration>
<configSections>
<section
name="Telerik.Reporting"
type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
allowLocation="true"
allowDefinition="Everywhere"/>
</configSections>
...
<Telerik.Reporting>
<extensions>
<render>
<extension name="XLS" visible="false">
</extension>
</render>
</extensions>
</Telerik.Reporting>
...
</configuration>
I hope this helps, please let me know if you have any additional questions. Thank you for trying Telerik Reporting!
Regards,
Dimitar
Progress Telerik