Bug Report T1253049
Visible to All Users

PlatformNotSupportedException occurs while exporting report to PDF in WASM if report contains special characters

created 7 months ago

Steps to reproduce:

  1. Create a Blazor WASM application with DevExpress Reporting components.
  2. Add a report that displays some special characters in its labels. For example, use the ü character.
  3. Use the DxReportViewer component to preview this report.
  4. Export the previewed report to PDF.

Expected results:

A PDF file is generated from the previewed report.

Current results:

The following exception occurs:

Call Stack
System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Globalization.Normalization.ValidateArguments(String strInput, NormalizationForm normalizationForm) at System.Globalization.Normalization.IcuNormalize(String strInput, NormalizationForm normalizationForm) at System.Globalization.Normalization.Normalize(String strInput, NormalizationForm normalizationForm) at System.String.Normalize(NormalizationForm normalizationForm) at DevExpress.Pdf.Native.PdfTextUtils.NormalizeAndDecompose(String text) at DevExpress.Pdf.ContentGeneration.PdfTextSubsetBuilder.AppendCluster(PdfExportFont font, DXCluster cluster) at DevExpress.Pdf.ContentGeneration.PdfTextBuilder.Append(DXTextLine line) at DevExpress.Pdf.ContentGeneration.PdfTextPainter.DrawLines(IReadOnlyList\\`1 lines, PdfExportFontInfo fontInfo, PdfStringPaintingStrategy strategy, PdfFontMetrics metrics, PdfStringClipper stringClipper, Boolean isolateAction) at DevExpress.Pdf.ContentGeneration.PdfTextPainter.DrawLines(IReadOnlyList\\`1 lines, PdfExportFontInfo fontInfo, PdfRectangle layoutRect, DXStringFormat format, PdfStringClipper stringClipper) at DevExpress.Pdf.ContentGeneration.PdfTextPainter.DrawLines(PdfCommandConstructor constructor, IReadOnlyList\\`1 lines, PdfExportFontInfo fontInfo, PdfRectangle layoutRect, DXStringFormat format) at DevExpress.Pdf.ContentGeneration.PdfGraphicsCommandConstructor.DrawString(String text, PdfExportFontInfo fontInfo, RectangleF layout, DXStringFormat format, DXLineFormatterOptions options, IDXLineBreakAnalyzer lineBreakAnalyzer) at DevExpress.Pdf.ContentGeneration.PdfGraphicsCommandConstructor.DrawString(String text, PdfExportFontInfo fontInfo, RectangleF layout, DXStringFormat format, DXLineFormatterOptions options) at DevExpress.Printing.Core.NativePdfExport.PdfPrintingGraphicsImplementation.<>c__DisplayClass11_0.<DrawCommonString>b__0() at DevExpress.Printing.Core.NativePdfExport.PdfGraphicsImplementation.PerformIsolatedAction(Action action) at DevExpress.Printing.Core.NativePdfExport.PdfPrintingGraphicsImplementation.DrawCommonString(DXSolidBrush solidBrush, RectangleF bounds, DXStringFormat format, DXStringFormat validFormat, String actualString, PdfExportFontInfo fontInfo, Boolean justifyText) at DevExpress.Printing.Core.NativePdfExport.PdfPrintingGraphicsImplementation.<>c__DisplayClass9_0.<DrawString>b__0(DXStringFormat validFormat) at DevExpress.XtraPrinting.Native.GraphicsBase.EnsureDXStringFormat(DXFont font, RectangleF bounds, DXGraphicsUnit unit, DXStringFormat dxFormat, IMeasurer measurer, Action\\`1 action) at DevExpress.Printing.Core.NativePdfExport.PdfPrintingGraphicsImplementation.DrawString(String s, DXFont font, DXBrush dxBrush, RectangleF bounds, DXStringFormat format, IMeasurer measurer, Boolean justifyText) at DevExpress.Printing.Core.NativePdfExport.PdfPrintingGraphicsImplementation.DrawString(String s, DXFont font, DXBrush dxBrush, RectangleF bounds, DXStringFormat dxFormat, IMeasurer measurer) at DevExpress.Printing.Core.NativePdfExport.PdfGraphics.DrawString(String s, DXFont font, DXBrush dxBrush, RectangleF bounds, DXStringFormat dxFormat) at DevExpress.XtraPrinting.BrickExporters.TextBrickExporter.DrawCore(IGraphics gr, RectangleF clientRectangle, DXStringFormat sf, DXBrush brush) at DevExpress.XtraPrinting.BrickExporters.TextBrickExporter.DrawText(IGraphics gr, RectangleF clientRectangle, DXStringFormat sf, DXBrush brush) at DevExpress.XtraPrinting.BrickExporters.LabelBrickExporter.DrawCore(IGraphics gr, RectangleF clientRectangle, DXStringFormat sf, DXBrush brush) at DevExpress.XtraPrinting.BrickExporters.LabelBrickExporter.DrawDeferred(IGraphics gr, BrickBase brick, RectangleF clientRectangle, DXStringFormat sf, DXBrush brush) at DevExpress.XtraPrinting.BrickExporters.LabelBrickExporter.DrawPdfCore(IPdfGraphics gr, RectangleF clientRectangle, DXStringFormat sf, DXBrush brush) at DevExpress.XtraPrinting.BrickExporters.LabelBrickExporter.DrawText(IGraphics gr, RectangleF clientRectangle, DXStringFormat sf, DXBrush brush) at DevExpress.XtraPrinting.BrickExporters.TextBrickExporter.DrawClientContent(IGraphics gr, RectangleF clientRect) at DevExpress.XtraPrinting.BrickExporters.VisualBrickExporter.DrawObjectCore(IGraphics gr, RectangleF rect) at DevExpress.XtraPrinting.BrickExporters.VisualBrickExporter.<>c__DisplayClass17_0.<DrawObjectCoreWithClipping>b__0() at DevExpress.XtraPrinting.Native.IGraphicsExtensions.ExecUsingClipBounds(IGraphics gr, Action action, RectangleF clipBounds, Boolean snapToDpi) at DevExpress.XtraPrinting.BrickExporters.VisualBrickExporter.DrawObjectCoreWithClipping(IGraphics gr, RectangleF rect) at DevExpress.XtraPrinting.BrickExporters.VisualBrickExporter.DrawObject

Additional information:

We forwarded this issue to our developer team for further research. We will update this thread as soon as we have made any progress on this issue.

Answers approved by DevExpress Support

created 6 months ago

We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

Important Notes:

  • Hotfixes may be unavailable for Early Access/Beta builds or updates set for release within a week.
  • .NET only: in the NuGet Package Manager, use your personal NuGet feed and check the "Include prerelease" option to view the hotfix package in the "Updates" tab.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.