Posted 10 July 2026, 2:06 pm EST
Hello support, we’ve had a customer report to us that some of their users are no longer able to save reports with Chinese or Arabic characters from the C1 Preview form. We were able to reproduce this but not on all machines. 2 machines with identical windows versions, identical installed fonts, one is able to save to pdf and one is not. The error is:
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.ReadByte()
at C1.Util.FontSubSet.BigEndianBinaryReader.ReadUInt16()
at C1.Util.FontSubSet.bs.a(Int64 a, BinaryReader b, UInt16 c)
at C1.Util.FontSubSet.ah(Int64 a, BinaryReader b)
at C1.Util.FontSubSet.ak(Int64 a, BinaryReader b)
at C1.Util.FontSubSet.al()
at C1.Util.FontSubSet.GetFontSubSet(FontKey fk)
at C1.C1Pdf.PdfFont.GetAlternativeFont(String text)
at C1.C1Pdf.C1PdfDocumentBase.a(PdfFont A_0, String A_1, Boolean A_2)
at C1.C1Pdf.C1PdfDocumentBase.a(String A_0, List`1 A_1, Boolean A_2, Int32 A_3)
at C1.C1Pdf.C1PdfDocumentBase.GetFontBlocks(String text, Boolean vertical)
at C1.C1Pdf.PdfMetafileConverter.EmfExtTextOut(PointF pt, RectangleF rc, RectangleF rcl, String text, Int32 fOptions, Int32 lpdx, PointF pscl)
at C1.Util.MetafileConverterBase.bx(BinaryReader a, Boolean b)
at C1.Util.MetafileConverterBase.f(EmfPlusRecordType a, Int32 b, Int32 c, IntPtr d, PlayRecordCallback e)
at System.Drawing.SafeNativeMethods.Gdip.GdipEnumerateMetafileDestPoint(HandleRef graphics, HandleRef metafile, GPPOINTF destPoint, EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)
at System.Drawing.Graphics.EnumerateMetafile(Metafile metafile, PointF destPoint, EnumerateMetafileProc callback, IntPtr callbackData, ImageAttributes imageAttr)
at System.Drawing.Graphics.EnumerateMetafile(Metafile metafile, PointF destPoint, EnumerateMetafileProc callback)
at C1.Util.MetafileConverterBase.a(Metafile a, ReferenceDC b, Boolean c)
at C1.Util.MetafileConverterBase.Render(Metafile meta, Boolean parseEmfPlus)
at C1.C1Pdf.C1PdfDocument.DrawMetafile(Metafile meta, RectangleF rcImage, RectangleF rcClip, Boolean clipAllStrings, GraphicsUnit unit)
at C1.C1Preview.Export.PdfExporter.ProcessPage(Metafile pageImage, C1MetafileInfo metafileInfo, Int32 pageNo, Boolean firstPage)
at C1.C1Preview.Export.Exporter.a(Metafile A_0, Int32 A_1, Int32 A_2, Boolean A_3, Boolean& A_4)
at C1.C1Preview.Export.Exporter.c()
at C1.C1Preview.Export.PdfExporter.InternalExport()
at C1.C1Preview.Export.Exporter.Export(String fileName)
I did see another topic that some users reported the windows version was a factor but that is apparently not the case for us. Nor are installed fonts a factor. Is there anything else we can look at/test for that might resolve this? Fortunately, we CAN print from the preview form to Microsoft Print To PDF printer driver without an issue. (dll version is 4.8.20232.611)
Thanks for your help!
