How to Import data from a ".xls" file to Data table

during Runtime.

Answer Posted / sreeprasad

DataTable.Import("path of the file")

DataTable.ImportSheet("filepath","sheetsource","sheetDest")

Sheetsource:index or name of the sheet in the file which u

want to import. index begins vth 1.

SheetDest: index or name of the sheet in the datatable

which u want to replace vth Sheetsource.Index begins vth 1.

ex:

Datatable.importsheet("c:\name.xls",1,"name")

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why qtp the best testing tool?

779


What are private functions in QTP? How they can be called from the function library?

829


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1913


How to use setroproperty?

776


What are the features and benefits of quick test pro (qtp 8.0)?

806


Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com

1715


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

3129


Explain the qtp test phases.

822


What are the different types of functions available in qtp and explain ?

803


What is different command used in command Prompt while using QTP?

2013


Describe synchronization point.

832


Whats the realtime QTP testing process

2204


How to get the particular property value?

818


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

749


What is the difference between call to existing action and copy of an action?

828