473,379 Members | 1,530 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,379 software developers and data experts.

Module question

Does python have a module similiar to the perl Spreadsheet::WriteExcel
Thanks,
Bill

Jul 18 '05 #1
6 1847

Goggle: keyword pyXLWriter - ported from Perl. Does not support newer
exel files. F.e. if you create a table and write headers (names) they
will be in the table as row 0. But it is fast and it works. Has a lot
of examples.

Jul 18 '05 #2
Bill Turczyn wrote:
Does python have a module similiar to the perl Spreadsheet::WriteExcel
Thanks,
Bill

In a pinch, you can output an HTML table, give the file an .xls
extension, and Excel will read it just fine.

There's probably a better option in python (under win32, you
could use win32com and drive Excel via COM for ex.) but this works
in a pinch.

Jul 18 '05 #3
Grumman <gr*****@example.com> writes:
Bill Turczyn wrote:
Does python have a module similiar to the perl Spreadsheet::WriteExcel
Thanks,
Bill

In a pinch, you can output an HTML table, give the file an .xls
extension, and Excel will read it just fine.


Welll, someone pointed out a third party package to do the job. I want
to point out the csv module included in the standard
distribution. That should work as well as an HTML table, with less
clutter in the file.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 18 '05 #4
Mike Meyer wrote:
Grumman <gr*****@example.com> writes:
Bill Turczyn wrote:

Does python have a module similiar to the perl Spreadsheet::WriteExcel

In a pinch, you can output an HTML table, give the file an .xls
extension, and Excel will read it just fine.


Welll, someone pointed out a third party package to do the job. I want
to point out the csv module included in the standard
distribution. That should work as well as an HTML table, with less
clutter in the file.


The difference being that when Excel opens up a *.CSV, it goes through
the import wizard. When you write an HTML table and save the file as
*.XLS, Excel will open it without the need for the import wizard (it
appears to act just as if the file were a true native-format Excel file)
.. Of course, this may also mean that you'll need to take extra care to
make sure that the cell formatting gets done correctly, since you won't
have the option of setting the formatting explicitly during import. (I
frequently deal with numbers that have significant leading zeros, and
Excel just loves to strip those off unless you set formatting to 'text'...)

Jeff Shannon
Technician/Programmer
Credit International

Jul 18 '05 #5
Thanks to everyone for the prompt reply, I now have several options to
explore.

Thanks again,
Bill

Jul 18 '05 #6
Simon Brunning wrote:
On Wed, 15 Dec 2004 18:10:40 -0800, Jeff Shannon <je**@ccvcorp.com> wrote:
The difference being that when Excel opens up a *.CSV, it goes through
the import wizard.


Are you sure that's true? When I open a *.csv file, Excel *appears* to
open it without running any kind of wizard. Certainly I don't see any
wizard dialogues.


You're right, my mistake -- I was thinking of tab-delimited *.txt files,
which I deal with far more often than I do *.csv ...

Jeff Shannon
Technician/Programmer
Credit International

Jul 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: N.K | last post by:
Hi , Python's existing cookie module doesnt supports new cookie headers SetCookie2 , How to submit a patch for that ? I tried emailing person who owns that module.But no response. Thanks,...
0
by: mg | last post by:
Hi everybody... I am using Python API in order to create bindings. So, in the init function of my module, I create constants : PyMODINIT_FUNC initMyModule( void ) { PyObject* module =...
10
by: Bonzol | last post by:
vb.net Hey there, could someone just tell me what the differnce is between classes and modules and when each one would be used compared to the other? Any help would be great Thanx in...
9
by: Rudy | last post by:
Hello All! I'm a little confused on Public Class or Modules. Say I have a this on form "A" Public Sub Subtract() Dim Invoice As Decimal Dim Wage As Decimal Static PO As Decimal Invoice =...
6
by: JonathanOrlev | last post by:
Hello everyone, I have a newbe question: In Access (2003) VBA, what is the difference between a Module and a Class Module in the VBA development environment? If I remember correctly, new...
0
ADezii
by: ADezii | last post by:
The motivation for this Tip was a question asked by one of our Resident Experts, FishVal. The question was: How to Declare Default Method/Property in a Class Module? My response to the question was...
4
by: Peter J. Bismuti | last post by:
I'm having trouble understanding how namespaces work in modules. I want to execute a module within the interpreter and then have values that are calculated persist so that other modules that get...
3
by: james | last post by:
Hi all, I did some quick searching but I haven't found anything like I want. It probably has to do with the terms I am searching for so if I describe what I want then I hope someone can point me...
22
by: ben mitch | last post by:
Hi I hope you'll see this cross-post (c/c++) as appropriate. I also admit immediately that the question *may* turn out to be compiler-/os-specific, in which case I apologize. But I wonder if...
2
by: Joe Strout | last post by:
Some corrections, to highlight the depth of my confusion... On Nov 11, 2008, at 9:10 PM, Joe Strout wrote: Actually, it does not. And no, it isn't; it's the NAME of the module the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.