I'm doing a dump from DataTable into a PDF.
This came from one of your samples and has been working great for weeks:
- Code: Select all
table.Style.DefaultStyle.BackgroundBrush = PdfBrushes.SkyBlue
table.Style.DefaultStyle.Font = New PdfTrueTypeFont(New Font("Arial", 8.0F))
table.Style.AlternateStyle = New PdfCellStyle()
table.Style.AlternateStyle.BackgroundBrush = PdfBrushes.White
table.Style.AlternateStyle.Font = New PdfTrueTypeFont(New Font("Arial", 8.0F))
table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions
table.Style.HeaderStyle.BackgroundBrush = PdfBrushes.White
table.Style.HeaderStyle.Font = New PdfTrueTypeFont(New Font("Arial", 9.0F, FontStyle.Bold))
table.Style.HeaderStyle.StringFormat = New PdfStringFormat(PdfTextAlignment.Center)
Now I get the error above. Unfortunately the error gives no indication what the character is which would be helpful.
I found this page:
- Code: Select all
www.e-iceblue.com/forum/error-converting-xls-to-pdf-t3969.html
settings.EmbedFonts = true;
Is there an equivalent way to do this for PDFTable?
Alternatively is there another font that you can recommend to get around this or another recommendation?
I have no idea what the other character may be. I suspect it may be something from a Norwegian alphabet but I can't be sure as no "strange" characters show up in an asp view of the same data.
Everything else has been working fine for a couple of weeks. Some new piece of data picked up by this functionality in the past few hours has caused this.
Thanks in advance