473,327 Members | 1,892 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,327 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 2874
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.