combined RESUMABLE and EXCELSAVING to one function using function handle and reflection

Signed-off-by: Qu Xiaofeng <quxiaofeng.at.polyu@gmail.com>