TAdvGridExcelExport

Hello,

How to use export to stream. I understand export(stream,???) but I have a problem to find TFileFormats. Any unit, example?

Thank you,

Andrzej

Hi,
TFileFomats is used to know if you want to save as xls, xlsx, etc. It is a FlexCel class, so it is in FlexCel.Core. Just add FlexCel.Core to your uses and it should be enough:

uses ..., FlexCel.Core, ...
...
AdvGridExcelExport1.Export(stream, TFileFormats.Xlsx)

Hi,
That works!

Thank you Adrian