#2 Re: PDF Engine » TextRect w/ TPdfDocumentGDI » 2020-03-26 14:25:31

Thanks. But using TRect produces the same compile error: [dcc32 Error] Unit1.pas(67): E2250 There is no overloaded version of 'TextRect' that can be called with these arguments

#3 PDF Engine » TextRect w/ TPdfDocumentGDI » 2020-03-25 18:52:19

jbannon
Replies: 4

Although Delphi (10.3.2) acknowledges the procedure TextRect exists, it won't compile. It stops on

   lpdf.VCLCanvas.TextRect(R, 'Now is the time for all good men', [tfCenter]);

with the error message:  [dcc32 Error] Unit1.pas(66): E2250 There is no overloaded version of 'TextRect' that can be called with these arguments

I've tried it with different values for TextFormat with the same result. My rect is declared as TPDFRect. My version of SynPDF.pas is dated 3/13/2020.

What's the problem?

Board footer

Powered by FluxBB