Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Importing data from Excel
#1
Not Solved
Hi All
I want to import data excel sheet in to DataTable. For this First I have created Excel file Named as First.xls in ExcelFiles folder in C. Then in Qtp script I have written like this

Code:
DataTable.Import "c:\ExcelFiles\First.xls"

but I am getting the following error

Code:
A general error occurred while importing file c:\ExcelFiles\First.xls.

I don' t know what is the problem
I need help on this
Thanks in advance
Reply
#2
Not Solved
I hope the sheet is not already open on your desktop. If this doesn't solve the issue please attach the file here.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,317 07-10-2017, 04:20 PM
Last Post: rajeevk7
  dtLocalSheet empty even though excel file contains data cantorre 2 2,434 05-10-2017, 12:47 PM
Last Post: vidhi
  Reading data from excel sheet serenediva 1 9,620 03-03-2017, 10:07 AM
Last Post: vinod123
  Importing data sheet Santu 2 3,396 08-20-2015, 11:37 PM
Last Post: ADITI1992
Smile Importing Excel sheet - Reference Values are not recognized michiusa69 3 7,884 01-23-2015, 02:36 AM
Last Post: lkng2001

Forum Jump:


Users browsing this thread: 1 Guest(s)