Hello Nayana!
You need Excel installed on your machine, in order to be able to generate .xls documents.
Check some examples from the CVI samples directory: <CVI Installation Directory>\samples\activex\excel
You can use those sample projects for extending them to your needs.
Best regards!
- Johannes