Posts: 60
Threads: 24
Joined: Jun 2012
Reputation:
0
09-06-2012, 06:29 PM
Dear All,
i have a excel sheet "datasheet.xls" which contains 50,000 entries in it
i want to export the data into datable...
how can i do this?
Thanks,
sia
Posts: 32
Threads: 6
Joined: Feb 2011
Reputation:
1
09-07-2012, 12:26 PM
use Datatable.import filepath for importing into datatable
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
09-07-2012, 05:31 PM
Hi,
Use Datatable.ImportSheet "D:\datasheet.xls",1,1
Regards,
Sankalp
Posts: 11
Threads: 0
Joined: Aug 2012
Reputation:
0
09-10-2012, 11:38 AM
Hi,
Use DataTable.ImportSheet "D:\datasheet.xlsx",1,"name"
name : is the namesheet in the test's run time Data Table
Regards,
Sibi C A
Posts: 11
Threads: 0
Joined: Aug 2012
Reputation:
0
09-10-2012, 04:02 PM
Hi,
Here use Datatable.Importsheet "D:\Sheet.xls","Sheet1","Global"
Dont include anything else.
I think It may work.
Regards,Sibi C A
Posts: 11
Threads: 0
Joined: Aug 2012
Reputation:
0
09-10-2012, 05:55 PM
Hi sia sharma,
Just confirm that whether the datatable is present in the D drive of your system and the name of the excel sheet that you have entered in QTP is matching with the Excel sheet name.Check the spelling also because, inside double quote the data is case sensitive.
Regards,
Sibi C A
Posts: 60
Threads: 24
Joined: Jun 2012
Reputation:
0
09-10-2012, 06:17 PM
The name of the excel sheet is matching and it is present in D drive.
what does it mean "the datatable is present in the D drive"?
Posts: 11
Threads: 0
Joined: Aug 2012
Reputation:
0
09-10-2012, 06:59 PM
I just wanted to confirm that the datasheet is there in your D drive.
Again you are getting errors?
Please share the screenshots of the error and the datasheet(Excel sheet in D drive).
Regards,
Sibi C A