Unplanned
Last Updated: 29 Jan 2024 15:46 by ADMIN
Yelena
Created on: 29 Jan 2024 15:41
Category: UI for WinForms
Type: Bug Report
0
GridViewPdfExport: Header text is rendered smaller than the data cells text

In the exported PDF document, the font size of the header and footer is smaller than the font of the data cells, even though the specified font is the same size.
To reproduce set the same font to the header and data cells:

pdfExport.HeaderFont.Font = new Font("Segoe UI", 10f);

private void PdfExport_CellFormatting(object sender, PdfExportCellFormattingEventArgs e)
{
    e.CellElement.Font = new Font("Segoe UI", 10f); 
}

1 comment
ADMIN
Todor
Posted on: 29 Jan 2024 15:46

As a workaround, you can increase the font of the header and footer by 2 pt.

pdfExport.HeaderFont = new Font("Segoe UI", 12f);

Regards,
Todor
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.