TTMSFNCDataGridPDFIO.Options.PageOrientation := poLandscape error

I want to set the Page Orientation at my TTMSFNCDataGridPDFIO (My Name=DataGridToPDF) to Landscape.
If i use the Properties in DataGridToPDF and set DataGridToPDF.Options.PageOrientation to poLandscape all works fine.
Also DataGridToPDF.Options.Pagesize to psA4 is ok.

But if i try to do this in code, poLandscape is not reconized.
Also psA4.


DataGridToPDF.Options.PageOrientation := poLandscape; //TTMSFNCDataGridPDFIOOptions.PageOrientation(1); // 1 entspricht poLandscape
  
DataGridToPDF.Options.PageSize:=psA4; //TPageSize(9); // 9 entspricht psA4

What uses do i need to recognize these options.

Hi,

You need to add the unit FMX.TMSFNCPDFLib.

FMX.TMSFNCPDFLib is not working.
TMSFNCPDFLib works

Thanks

1 Like