Search code examples
delphiexcelexportexpand

Expand excel column using delphi


If I have a DBGrid in a form filled with some data and I want to export the the grid to a excel file how can I expand the columns in the excel file depending on the content of the columns.


Solution

  • I think you're looking for the Range.AutoFit method.