[Tutor] saving .csv file as an xl worksheet

2006-03-07 Thread János Juhász
%s\n' % data) xml.write('\n') rownum += 1 ## Function with reference xml.write(xmlsum % (rownum-2)) ## Foot xml.write(xmlfoot % (rownum, colnum)) xml.close() os.execl(r'c:\Program Files\Microsoft Office\Office10\EXCEL.EXE', dest) #

Re: [Tutor] saving .csv file as an xl worksheet

2006-03-06 Thread andrew clarke
On Mon, Mar 06, 2006 at 02:46:36PM +0530, arun wrote: > Can i save a file with a desired extension?? > for ex: I have a .csv file (test.csv) and i want to save this file as > test.xls from a python script. Just changing the file extension from .csv to .xls won't change the file format. OpenOf

Re: [Tutor] saving .csv file as an xl worksheet

2006-03-06 Thread Kent Johnson
arun wrote: > Hi , > Can i save a file with a desired extension?? > for ex: I have a .csv file (test.csv) and i want to save this file as > test.xls from a python script. It's easy to rename a file, or read it and save it with whatever name you like, but that won't convert it to an actual Exc

Re: [Tutor] saving .csv file as an xl worksheet

2006-03-06 Thread Hugo González Monteverde
Hello, .xls is a proprietary format used by Microsoft office, and unless you have the specs for that format and are willing to implement them (very very hard) it would not make much sense. If you absolutely need that, then maybe a macro in VBA from Excel itself may be a better option. Ch

[Tutor] saving .csv file as an xl worksheet

2006-03-06 Thread arun
Hi ,   Can i save a file with a desired extension?? for ex:  I have a .csv file (test.csv) and i want to save this file as test.xls from a python script.   Thanx in advance ac ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listi