No AdvStringGrid assigned to this component?


I've assigned in Object Inspector a TAdvGridExcelIO component to a TAdvStringGrid.
Usually everything works like expected, but a customer sends me a screenshot with the error message "There is no AdvStringGrid assigned to this component".
The message appears after calling AdvGridExcelIO1.XLSExport(filename).

What happens here? How can I catch this error?


Before you call AdvGridExcelIO.XlsExport() verify that a grid is assigned, i.e.

if Assigned(AdvGridExcelIO.AdvStringGrid) then