Thread Rating:
  • 4 Vote(s) - 2.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whether xlsx extension works while importing data sheet?
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

When I am trying to import Excel sheets its allowing sheets of file with .xls extention.
When I selected files with .xlsx extention its throwing error saying "Invalid file"

My OS is Vista with QTP 9.2. Is there any constrant on the file extension?

Thanks,
Akhila
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Yes it is

The .xlsx format is not supported by QTP 9.5. Try saving the excel 2007 spreadsheet as .xls and do the import

Regards
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Thanks! Its working after changing the extension to .xls

Akhila
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi All,

I am Using QTP 9.5 in Windows 7, and Windows XP.

It is accepting .xlsx files without any error.

if any issues. Please let me know.
Hi All,

I am Using QTP 9.5 in Windows 7, and Windows XP.

It is accepting .xlsx files without any error.

if any issues. Please let me know.
Reply
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
Hey Baba,
How did you managed to get it working? I just tried it and it does not seem to be working.

Reply
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
According to me, no version of QTP (including 10.0) would recognize the new MS-Office extensions(.docx, .xlsx etc.).

QTP only recognizes .xls, .doc etc. as in the MS-Office 97-2003.

I am not too sure, but from the situation presented by Baba, it appears that Windows 7 may have some settings (that should have been in place, accidentally or o.w) that can do auto backward compatibility of say .XLSX to .XLS. Some R & D on Windows 7 can be of help. - Cheers!!

-I.L
Reply
#7
Solved: 11 Years, 3 Months, 3 Weeks ago
Just use below code.. and provide your desired path and run...

make sure that excel file have extension .xlsx


dim xl

set xl=createobject("excel.application")

xl.visible=true

xl.workbooks.open("E:\Baba_QTP\QTP\Data\a.xlsx")

set xl=nothing
Reply
#8
Solved: 11 Years, 3 Months, 3 Weeks ago
hey Fakruddin,
you missed the original query, its not about opening an xlsx file, its about importing the sheet to datatable Smile
which is not supported in QTP yet.

try this in QTP
Code:
Datatable.importsheet("E:\Baba_QTP\QTP\Data\a.xlsx","Sheet1","Action1")


you can also try setting the same file as datatable in Setting>Resources

let us know if any of this works.

Reply
#9
Solved: 11 Years, 3 Months, 3 Weeks ago
ghdfans2010 -Many thanks for your appreciation but I dont think anyone would like to see your hair straighteners here. we all get our hair straighten automatically when at work automating different applications Smile

Signature Included external Links which were not relevent for QTP/Testing

[Removed Signature from your profile - Saket]

everyone - Promotional/External links are not allowed here. Make sure you are posting contents which are relevent to QTP or atleast for testing.

Reply
#10
Solved: 11 Years, 3 Months, 3 Weeks ago
@Saket : lol Smile I just saw your post today when I had to ban another spammer on this thread.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading data from excel sheet serenediva 1 9,620 03-03-2017, 10:07 AM
Last Post: vinod123
  Chrome Extension UFT Agent for Chrome Browser testing with UFT santhosh kumar 2 12,456 04-20-2016, 01:20 AM
Last Post: santhosh kumar
Question QTP not performing iterations based on local data sheet Breaker 18 56,762 01-25-2016, 04:32 PM
Last Post: arunshuklainbox
  How QTP record/play works on google chrome shobi 6 7,557 01-11-2016, 09:53 AM
Last Post: vinod123
  Importing data sheet Santu 2 3,396 08-20-2015, 11:37 PM
Last Post: ADITI1992

Forum Jump:


Users browsing this thread: 3 Guest(s)