Posted 27 April 2020, 9:02 pm EST
Hi,
we create C1PrintDocuments and add them to a C1MultiDocument. Then, we export the C1MultiDocument as a PDF to disk.
After migrating to Windows10, we observe a strange behaviour. The exported PDF contains pages with different fonts altough we define the same font (name and size) for each C1PrintDocument.
The behaviour can not be reproduced deterministically. This means, one time the font differs on page 1 and page 3, an other time the font differs only on page 2. And sometimes the font do not differ at all.
Here is how we create the C1PrintDocument
C1PrintDocument.UsePrinterForDefaultPageSettings = False
Dim doc As C1PrintDocument = New C1PrintDocument()
doc.CreationDpi = dpi
doc.FontHandling = FontHandling.EmbedFonts
doc.Style.Font = New Font("Courier New", 9, GraphicsUnit.Point)
doc.PageLayouts.Default.PageSettings.PaperKind = PaperKind.A4
doc.PageLayouts.Default.PageSettings.TopMargin = New Unit(0.5, UnitTypeEnum.Cm)
doc.PageLayouts.Default.PageSettings.BottomMargin = New Unit(1, UnitTypeEnum.Cm)
doc.PageLayouts.Default.PageSettings.LeftMargin = New Unit(2, UnitTypeEnum.Cm)
doc.PageLayouts.Default.PageSettings.RightMargin = New Unit(1.3, UnitTypeEnum.Cm)
Dim cr As RenderText = New RenderText()
...
doc.PageLayouts.Default.Overlay = cr
Return doc
Used OS:
Windows 10
- version 1709
- version 1809
Used ComponentOne:
- 4.0.20192.697 (Control Library)
- 4.0.20201.416 (Report Library)