Saving Grid to PDF with cell background

Hello,

I have a TMSFMXGrid and set the cell background of every cell with a different color. In the TMSFMXGridCellBeforeDraw event i calculate the cell background color from the cell content.

When I export the grid to a pdf file with  TMSFMXGridPDFCreatorIO1.Save('xxxx') the pdp file has no cell background information. I have no TMSFMXGridCellBeforeDraw events during the pdf export.

Does someone know how i can export the cell background color to a pdf file?

Thanks

Hi, 


The OnCellBeforeDraw function is not called during pdf creation. The PDF creation engine doesn't support custom drawing inside cells.

Kind Regards, 
Pieter

Hi,

I found it!
With TMSFMXGridGetCellLayout it works fine !

Kind Regards,
Thomas