Using field values in Page_Exporting (v2022)

The Page_Exporting is fired before export, the data is not loaded yet, you may customize the ExportPdf class and override the exportHeaderAndFooter() method.