Steps to reproduce:
- Create a Blazor WASM application with DevExpress Reporting components.
- Add a report that displays some special characters in its labels. For example, use the
ü
character. - Use the DxReportViewer component to preview this report.
- Export the previewed report to PDF.
Expected results:
A PDF file is generated from the previewed report.
Current results:
The following exception occurs:
Call StackSystem.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.