Posts: 50
Threads: 24
Joined: Jan 2008
Reputation:
0
09-29-2008, 07:07 AM
(This post was last modified: 09-30-2008, 12:53 PM by Ankur.)
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
Posts: 71
Threads: 1
Joined: Jul 2008
Reputation:
0
09-30-2008, 02:19 AM
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
Posts: 50
Threads: 24
Joined: Jan 2008
Reputation:
0
09-30-2008, 06:26 AM
Thanks! Its working after changing the extension to .xls
Akhila
Posts: 146
Threads: 50
Joined: Dec 2008
Reputation:
1
01-22-2010, 09:11 PM
(This post was last modified: 01-22-2010, 09:13 PM by bfakruddin.)
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.
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
01-25-2010, 10:37 AM
Hey Baba,
How did you managed to get it working? I just tried it and it does not seem to be working.
Posts: 1
Threads: 0
Joined: Jan 2010
Reputation:
0
03-04-2010, 01:10 PM
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
Posts: 146
Threads: 50
Joined: Dec 2008
Reputation:
1
03-12-2010, 03:27 PM
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