No AdvStringGrid assigned to this component?

Hello,

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?

Regards

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


if Assigned(AdvGridExcelIO.AdvStringGrid) then 
    AdvGridExcelIO.XlsExport()