He recompiled the entire QuickReport source with this patch injected. The E2003 vanished. But then came the avalanche: E2010 Incompatible types: 'HPEN' and 'TFont' in QRExpImg.pas . The image exporter was trying to use GDI pens on GDI+ fonts. UPD’s updated TMetafile handling had stricter type checking.
He commented out the entire DrawText block. He replaced it with TTextMetric calls that were deprecated in Windows 10 but still worked . He added compiler directives: Quickreport For Delphi 11 Alexandria UPD
It was a memory leak waiting to happen. He didn't care. It was 1:30 AM. He recompiled the entire QuickReport source with this