473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Writting to .xlsx files

10
Hi, I am trying to write to data to a .xlsx file. I can currently write the data to a .xls file. I tried to change the extension of the xls file (to xlsx) but Excel gave the following error:Excel cannot open the file 'Filename.xlsx' because the file format or file extent ion is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.
I know Excel can open the xls file but I would like to save the data to a xlsx file.
Any advice would be greatly appreciated
Thanks
Jan 6 '09 #1
5 2876
Stang02GT
1,208 Expert 1GB
trying taking the x off the end of the file name. I believe that Excel uses xls not xlsx.


Moving to Misc as the software dev forum is not a place for this type of question.
Jan 6 '09 #2
DonRayner
489 Expert 256MB
xlsx is a excel 2007 extension where xls is pre 2007 excel extension. You can get drivers from Micro$oft to open the xlsx extension with previous versions of excel but I don't believe that you will be able to save in that format.

Try doing a google search for converting xls to xlsx and you will probally find some online conversion tools.
Jan 6 '09 #3
Stang02GT
1,208 Expert 1GB
Learn something new everday. I really haven't used or know much about the new office suite. My work still uses previous versions.
Jan 6 '09 #4
RedSon
5,000 Expert 4TB
Just for the record, modifying the extension of the file does not change what type of file you have. If I write a book called MyStory.txt and I want to compress it and email it to my friend I don't change the filename to MyStory.zip and send it away. All you are doing is renaming the file.
Jan 6 '09 #5
wolfjmt
10
Thanks for your input guys
Jan 7 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: yawnmoth | last post by:
i'm trying to write a php script that will password protect some random directory by creating a .htaccess file, and a password file to accompany the .htaccess file, and it isn't working... ...
2
by: Robizzle | last post by:
I'm working on a very simple script that logs the ip address, time of hit, and os/browser information and currently it works every time. The problem is getting the script included into my html...
3
by: Boris Condarco | last post by:
Hi gurus, I'm using excel 2000 to show data that comes from datagrid. The problem is that for any reason the asp.net application maintains the excel open, even though, i do close it. Besides,...
0
by: marinhof | last post by:
hi i need some guidance.. this is the situation im working on web app using Visual studio 2003 working with C# and asp.net the database is managed by sql studio managmnet 2005.. the thing is i...
1
by: neehakale | last post by:
can anybody of u know basic steps of reading and writting excel files in c#.net.Which class or namspace we have to use here like we use system.IO for reading and writting to text files...
3
by: =?Utf-8?B?bWF2cmlja18xMDE=?= | last post by:
Hi, I have a web page, where users can upload excel sheet and the page will then process the data (take data and insert into the table). Its a simple excel sheet and not fancy stuff. Can...
1
by: Doogie | last post by:
Hi, I am writing a script to export data to an excel file which works fine but I've seen one thing that is confusing. If I use the extension .xlsx, the file will get created, but Excel won't let...
3
by: wolfjmt | last post by:
Hi, I am trying to write to data to a .xlsx file(Excel 2007). I can currently write the data to a .xls file. I tried to change the extension of the xls file (to xlsx) but Excel gave the following...
6
by: dandan | last post by:
I wrote a program which writes informations to files and it was working fine, it created and wrote to over 1000 files, but now it will only write to files occasionaly. I don't know if it is an error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.