You can check next info in standard documentation
scbr.com/docs/products/dhtml … excell_add
This is basic sample, if you want to create such complex functionality - please provide more detail, maybe we already have something similar which can be used as a base.