    resultValues = {}
    resultValues['columns'] = names;
    resultValues['nbOfExportedRows'] = len(filtering)
    setResultProperty(serializeToJSON(resultValues))
except Exception,ex:
    notify.AddErrorNotification("Error during export",ex.ToString(),"")
    raise
finally :
    stream.Close()