Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
data table
#11
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Sia Sharma,

Try using Datatable.import "D:\Sheet.xls"

hope it works...

Srikanth
Reply
#12
Solved: 11 Years, 3 Months, 3 Weeks ago
Is the sheet u import .xls format only.
Please check that once..
The code looks fine.
Reply
#13
Solved: 11 Years, 3 Months, 3 Weeks ago
@ SIBICA : The datasheet is there in the D drive
and I have already shared a screen shot.

@shredevi.salagare : yes its in the .xls format




Thanks,
sia
Reply
#14
Solved: 11 Years, 3 Months, 3 Weeks ago
Exactly,
Again if you are getting errors can you please share the screen shots of error and the excel sheet present in d drive.

Regards,
Sibi C A
Reply
#15
Solved: 11 Years, 3 Months, 3 Weeks ago
hi,
We need not to pass any arguements when using Datatable.import command....
It can be done with the simple command Datatable.import "D:\Sheet.xls"
make sure the file extension is xls not xlsx.And the file is not opened or in access of the other program.

Srikanth
Reply
#16
Solved: 11 Years, 3 Months, 3 Weeks ago
I have a doubt from your screenshot..your excel sheet name is "sheet" or "sheet.xls"?? while saving the file how did u save it?
Reply
#17
Solved: 11 Years, 3 Months, 3 Weeks ago
a screen shot

The Export operation is working fine ...

Only import is giving error...

What does it mean not supoorted by formula one?


Attached Files Image(s)
   
Reply
#18
Solved: 11 Years, 3 Months, 3 Weeks ago
Have you used any formula in the file that you are importing?? Please note you can not import a formatted file to QTP datatable. Please remove the formulas/Formatting, if any, and try again.
Reply
#19
Solved: 11 Years, 3 Months, 3 Weeks ago
i m not using any formula ...
and i m also not using any formating...

Sad
Reply
#20
Solved: 11 Years, 3 Months, 3 Weeks ago
One query, are you having MS excel installed on your system??? Screenshot shows Open office. May be there is the issue. I am not sure though. You can probably check on the system which has excel installed.

Regards,
Ankesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  data table use uft_usr 1 2,235 06-29-2016, 05:23 PM
Last Post: Ankesh
  Writing to Run time data table Neetha 5 12,159 08-27-2015, 10:18 AM
Last Post: supputuri
  Retrieving data from web table nsuresh316 1 3,099 03-03-2014, 08:29 AM
Last Post: basanth27
  How to get data from data table in Ascending order dipashri 1 3,745 01-28-2014, 09:54 PM
Last Post: jacosta
  Data Table Query Suma Parimal 4 4,766 01-21-2014, 12:50 PM
Last Post: Suma Parimal

Forum Jump:


Users browsing this thread: 1 Guest(s)