Re: pyExcelerator: setting zoom of a worksheet

2008-11-25 Thread John Machin
On Nov 26, 6:40 am, Frank <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I use pyExcelerator and am quite happy with it, except: I cannot find a option > for setting the zoom of a particular worksheet. I am using pyExcelerator > 0.6.3a which is the latest as far as i know

pyExcelerator: setting zoom of a worksheet

2008-11-25 Thread Frank
Hi everybody, I use pyExcelerator and am quite happy with it, except: I cannot find a option for setting the zoom of a particular worksheet. I am using pyExcelerator 0.6.3a which is the latest as far as i know. I already contacted the developer of pyExcelerator, he says there is a zoom

pyExcelerator number formats and borders (was Re: PyExcerlerator details)

2008-04-29 Thread John Machin
A_H wrote: Hi, I'm using PyExcelerator, and it's great, If you are using the latest released version, it's not, IMO. Reading the fixed-later bug reports on Sourceforge may prompt you to get the latest version from svn. Reading the unfixed bug reports on Sourceforge may promp

Re: write float to Excel with pyExcelerator write

2008-03-03 Thread John Machin
On Mar 1, 5:59 pm, Cyril.Liu <[EMAIL PROTECTED]> wrote: > I use pyExcelerator to generat Excel files in my project. it works good > before I found this bug: > run this code: > > from pyExcelerator import * > wb = Workbook() > ws = wb.add_sheet("sheet") >

Re: write float to Excel with pyExcelerator write

2008-03-03 Thread Peter Otten
Cyril.Liu wrote: > I use pyExcelerator to generat Excel files in my project. it works good > before I found this bug: > run this code: > > from pyExcelerator import * > wb = Workbook() > ws = wb.add_sheet("sheet") > for i in xrange(1): > ws

write float to Excel with pyExcelerator write

2008-03-03 Thread Cyril.Liu
I use pyExcelerator to generat Excel files in my project. it works good before I found this bug: run this code: from pyExcelerator import * wb = Workbook() ws = wb.add_sheet("sheet") for i in xrange(1): ws.write(i,0, 10474224.6) wb.save(r'd:\error_float.xls') open d:\er

write float to Excel with pyExcelerator write

2008-03-03 Thread Cyril.Liu
I use pyExcelerator to generat Excel files in my project. it works good before I found this bug: run this code: from pyExcelerator import * wb = Workbook() ws = wb.add_sheet("sheet") for i in xrange(1): ws.write(i,0, 10474224.6) wb.save(r'd:\error_float.xls') open d:\er

Re: pyExcelerator - Can I read and modify an existing Excel-WorkBook?

2008-01-31 Thread John Machin
On Feb 1, 4:37 am, Stephen Brown <[EMAIL PROTECTED]> wrote: > Yes indeed, pyExcelerator does support reading data from excel > spreadsheets. I presume this is an orphaned and belated reply to the 3-message thread in July 2006 with the same subject. > An example of how to do this

pyExcelerator - Can I read and modify an existing Excel-WorkBook?

2008-01-31 Thread Stephen Brown
Yes indeed, pyExcelerator does support reading data from excel spreadsheets. An example of how to do this is included in the file xls2csv-gerry.py under the directory ... pyExcelerator/examples/tools Syntax is pretty straight forward. extract_all = parse_xls(filename, CP = None) where CP

Re: pyExcelerator: writing multiple rows

2008-01-19 Thread [EMAIL PROTECTED]
On Jan 19, 7:46�am, [EMAIL PROTECTED] wrote: > Hi all, > > I was just curious if there was a �built-in or a more efficient way to > do take multiple rows of information and write them into excel using > pyExcelerator. �This is how I resolved the problem: > > from pyExcelera

pyExcelerator: writing multiple rows

2008-01-19 Thread patrick . waldo
Hi all, I was just curious if there was a built-in or a more efficient way to do take multiple rows of information and write them into excel using pyExcelerator. This is how I resolved the problem: from pyExcelerator import * data = [[1,2,3],[4,5,'a'],[''

Re: pyExcelerator and multiple worksheets

2007-06-12 Thread John Machin
On Jun 12, 10:58 am, [EMAIL PROTECTED] wrote: > I'm using pyExcelerator to take a folder of CSV files and create Excel > workbooks for all of them, then generate an Excel workbook with the > data from all of them. > > Everything up until here works great; next, I make a secon

pyExcelerator and multiple worksheets

2007-06-11 Thread aneesh . goel . rbtx
I'm using pyExcelerator to take a folder of CSV files and create Excel workbooks for all of them, then generate an Excel workbook with the data from all of them. Everything up until here works great; next, I make a second worksheet on the last workbook which has summary details regardin

pyExcelerator Protection insert_bitmap

2007-06-07 Thread pythonwin pythonwin
Good evening! say, please, as in *.xls to insert an unscreened picture? example: image.py but a picture in OpenOficce is not represented :( OS - windows XP, debian etch pyExcelerator 0.6.3a-1 #!/usr/bin/env python # -*- coding: windows-1251 -*- # Copyright (C) 2005 Kiseliov Roman __rev_id__

Re: pyExcelerator bug?

2007-05-21 Thread tkpmep
John, I'd be delighted to try xlwt (does it work under Python 2.4 and 2.5?) I followed the link to ...svn/xlwt/trunk and found a collection of files, but no Windows installer. How do I install xlwt? Thanks in advance Thomas Philips -- http://mail.python.org/mailman/listinfo/python-list

Re: pyExcelerator bug?

2007-05-20 Thread John Machin
rd column of the >> spreadsheet. Is this a known bug? [looks like my (earlier) reply to the original post didn't make it to c.l.py] This may well be a manifestation of the RK bug that is reported in two bug reports (1509223 and 1596642) on the pyExcelerator sourceforge site. However

Re: pyExcelerator bug?

2007-05-20 Thread Waldemar Osuch
On May 16, 4:42 pm, [EMAIL PROTECTED] wrote: > My program creates three lists: the first has dates expressed as > strings, the second has floats that are strictly positive, and the > third has floats that are strictly negative. I have no trouble writing > the data in these lists to a .csv file usin

pyExcelerator bug?

2007-05-16 Thread tkpmep
= file(fn + '.csv','wb') writer = csv.writer(outfile) for i in range(len(dateList)): writer.writerow([dateList[i], posVals[i], negVals[i]]) outfile.close() However, when I try to write to an Excel file using pyExcelerator (see code below), the third list is not always wr

Re: No module named pyExcelerator Error

2007-02-11 Thread Gabriel Genellina
En Mon, 12 Feb 2007 01:46:51 -0300, susan <[EMAIL PROTECTED]> escribió: >> > $ python ./pyExcelerator/setup.py install >> >> Try this instead: >> $ cdpyExcelerator >> $ python ./setup.py install > I still wonder why my way didn't work. I think

Re: No module named pyExcelerator Error

2007-02-11 Thread susan
On Feb 11, 11:22 pm, Samuel Karl Peterson <[EMAIL PROTECTED]> wrote: > "susan" <[EMAIL PROTECTED]> on 11 Feb 2007 16:55:35 -0800 didst > step forth and proclaim thus: > > > Hi, > > I'm new of Python, and this problem stucked me whole day but can't be > > solved. > > [snip] > > > anybody can tell me

Re: No module named pyExcelerator Error

2007-02-11 Thread susan
gt; I use python 2.4.3, which is download from cygwin packages. > > Is your Python installation working properly for you with other > things, or is installingpyExceleratorthe first thing that you have > tried? > > > Then I > > downloadedpyexcelerator-0.5.3a, unzip it, > >

Re: No module named pyExcelerator Error

2007-02-11 Thread Samuel Karl Peterson
"susan" <[EMAIL PROTECTED]> on 11 Feb 2007 16:55:35 -0800 didst step forth and proclaim thus: > Hi, > I'm new of Python, and this problem stucked me whole day but can't be > solved. [snip] > anybody can tell me where's wrong please? Thanks in advance! What are the contents of sys.path from an i

Re: No module named pyExcelerator Error

2007-02-11 Thread John Machin
r you with other things, or is installing pyExcelerator the first thing that you have tried? > Then I > downloaded pyexcelerator-0.5.3a, unzip it, Is that "5" a typo? The latest version is 0.6.3a > > $ python ./pyExcelerator/setup.py install Try this instead: $ cd pyExcelera

No module named pyExcelerator Error

2007-02-11 Thread susan
Hi, I'm new of Python, and this problem stucked me whole day but can't be solved. I use python 2.4.3, which is download from cygwin packages. Then I downloaded pyexcelerator-0.5.3a, unzip it, $ python ./pyExcelerator/setup.py install running install running build running build_py pa

Re: pyExcelerator - Protecting Cells

2007-02-09 Thread John Machin
On 9/02/2007 6:36 PM, Chris wrote: > I'm sitting with a bit of an issue with pyExcelerator and creating an > Excel file with certain cells protected while the rest of the > spreadsheet is password protected. > > The Protection class under Formatting has 2 variables f

pyExcelerator - Protecting Cells

2007-02-08 Thread Chris
I'm sitting with a bit of an issue with pyExcelerator and creating an Excel file with certain cells protected while the rest of the spreadsheet is password protected. The Protection class under Formatting has 2 variables for cell_locked and formula_hidden, tbh I only need to alter cell_lock

Re: pyExcelerator big integer values

2007-01-16 Thread Gacha
John Machin wrote: > Here's a possible replacement -- I say possible because you have been > rather coy about what you are actually trying to do. > > value = values[(row_idx, col_idx)]) > if isinstance(value, float): > v = repr(value) > else: > v = unicode(value) > > HTH > John My final re

Re: pyExcelerator big integer values

2007-01-10 Thread John Machin
Gacha wrote: > Thank you, the repr() function helped me a lot. > > v = unicode(values[(row_idx, col_idx)]) > if v.endswith('e+12'): > v = repr(values[(row_idx, col_idx)]) That endswith() looks rather suspicious ... what if it's +11 or +13, and shouldn't it have a zero in it, like "+012" ?? H

Re: pyExcelerator big integer values

2007-01-10 Thread Gacha
Thank you, the repr() function helped me a lot. v = unicode(values[(row_idx, col_idx)]) if v.endswith('e+12'): v = repr(values[(row_idx, col_idx)]) -- http://mail.python.org/mailman/listinfo/python-list

Re: pyExcelerator big integer values

2007-01-09 Thread John Machin
On Jan 10, 12:30 am, "Gacha" <[EMAIL PROTECTED]> wrote: > I use pyExcelerator to import some data from xml file. One column > contains integer values like: > 4750456000708 > 4750456000715 > 4750456000333 I think you must mean "xls", not "xml&

pyExcelerator big integer values

2007-01-09 Thread Gacha
I use pyExcelerator to import some data from xml file. One column contains integer values like: 4750456000708 4750456000715 4750456000333 ... But when I do import the pyExcelerator converts them to something like this: 4.7504560002e+12 4.7504560007e+12 4.7504560007e+12 4.7504560003e+12 How I

Re: PyExcelerator: how to set colours?

2006-12-23 Thread Waldemar Osuch
Gerry wrote: > I'd like some cell to be a Blue "ABCDE". > > Here's come code thatv tries various values for pattern_for_colour and > font.colour_index, to no avail. > > Can anyone suggest the right way to set colours? > > Thanks! > > Gerry > &

PyExcelerator: how to set colours?

2006-12-22 Thread Gerry
I'd like some cell to be a Blue "ABCDE". Here's come code thatv tries various values for pattern_for_colour and font.colour_index, to no avail. Can anyone suggest the right way to set colours? Thanks! Gerry == from pyExcelerator import * w

Re: pyExcelerator question

2006-12-19 Thread Gerry
Thanks!!! Looks great. Works for me. I'll try to submit the patch. Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: pyExcelerator question

2006-12-18 Thread John Machin
Gerry wrote: > I'd like to word wrap some cells, but not others, in an Excel > spreadsheet, using pyExcelerator and Excel 2003, SP1, under XP. > > The code below creates the spreadsheet, but both cells are > word-wrapped. > > As far as I can tell, the second call to XFS

pyExcelerator question

2006-12-18 Thread Gerry
I'd like to word wrap some cells, but not others, in an Excel spreadsheet, using pyExcelerator and Excel 2003, SP1, under XP. The code below creates the spreadsheet, but both cells are word-wrapped. As far as I can tell, the second call to XFStyle() overwrites a GLOBAL wrap setting, and af

Re: pyExcelerator question - dates map to floats?

2006-09-10 Thread skip
John> Check out my "xlrd" package. John> http://cheeseshop.python.org/pypi/xlrd/0.5.2 Very nice. Thanks for the pointer. I threw away about 75% of the xls-to-csv converter I wrote using pyExcelerator. And it worked with Python 2.3 without having to comment out al

Re: pyExcelerator question - dates map to floats?

2006-09-10 Thread skip
John> Check out my "xlrd" package. John> http://cheeseshop.python.org/pypi/xlrd/0.5.2 ... John, Thank you. I wasn't aware of it. I'd seen mention of pyExcelerator a few times recently. All I need is to read Excel spreadsheets anyway. I will check it

Re: pyExcelerator question - dates map to floats?

2006-09-09 Thread John Machin
I might get date floats which are offset from 1904-01-01 (I think that > was the traditional Mac start-of-epoch) or are they normalized to all be > offsets from 1899-12-31? > > I noticed that there are two items on the pyExcelerator to-do list. Number > one is "documentation&quo

Re: pyExcelerator question - dates map to floats?

2006-09-09 Thread skip
t's too late for me to do any more poking around. Does anyone know if I might get date floats which are offset from 1904-01-01 (I think that was the traditional Mac start-of-epoch) or are they normalized to all be offsets from 1899-12-31? I noticed that there are two items on the pyExcelerato

pyExcelerator question - dates map to floats?

2006-09-09 Thread skip
I'm experimenting with pyExcelerator and am reading an XLS file which contains dates. In Excel on my Mac they look like "09/13/06". After parsing them out of the .XLS file they are floats, e.g. 38973.0. I assume that's an offset in days. Doing a little date math I come up

Re: IronPython and scipy/pyExcelerator

2006-07-22 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > I'm looking forward to the release IronPython, primarily for its IDE. I > currently use scipy and pyExcelerator to crunch numbers and write them > to Excel: does can these packages be used with IronPython as well? > > Thanks in advance You could

Re: IronPython and scipy/pyExcelerator

2006-07-21 Thread Robin Becker
[EMAIL PROTECTED] wrote: > I'm looking forward to the release IronPython, primarily for its IDE. I > currently use scipy and pyExcelerator to crunch numbers and write them > to Excel: does can these packages be used with IronPython as well? > > Thanks in advance > >

IronPython and scipy/pyExcelerator

2006-07-20 Thread tkpmep
I'm looking forward to the release IronPython, primarily for its IDE. I currently use scipy and pyExcelerator to crunch numbers and write them to Excel: does can these packages be used with IronPython as well? Thanks in advance Thomas Philips -- http://mail.python.org/mailman/listinfo/p

Re: pyExcelerator - Can I read and modify an existing Excel-WorkBook?

2006-07-13 Thread rbsharp
/xlrd.htm It works fines as far as reading Excel is concerned. Greetings, Richard Sharp Gregory Piñero wrote: > No, by it I meant pyExcelerator :-) > > On 7/11/06, Larry Bates <[EMAIL PROTECTED]> wrote: > > If by "it" you mean Excel's COM interface, it most certa

Re: pyExcelerator - Can I read and modify an existing Excel-WorkBook?

2006-07-11 Thread Gregory Piñero
No, by it I meant pyExcelerator :-) On 7/11/06, Larry Bates <[EMAIL PROTECTED]> wrote: > If by "it" you mean Excel's COM interface, it most certainly will. > With COM you call all the same functions/methods that Microsoft > calls to open, save, and manipulate the s

Re: pyExcelerator - Can I read and modify an existing Excel-WorkBook?

2006-07-11 Thread Gregory Piñero
emplate) > > 2. and add some data to it > > 3. and save it under a different name afterwards. > > > > To me it seems, that pyExcelerator does not support the reading for > > modification of an Excel-sheet. It allows only the "parse_xls" but I > > wo

Re: pyExcelerator - Can I read and modify an existing Excel-WorkBook?

2006-07-11 Thread Larry Bates
Marco Aschwanden wrote: > > Hi > > I would like to > 1. import an existing Excel-sheet (a template) > 2. and add some data to it > 3. and save it under a different name afterwards. > > To me it seems, that pyExcelerator does not support the reading for > modi

pyExcelerator - Can I read and modify an existing Excel-WorkBook?

2006-07-11 Thread Marco Aschwanden
Hi I would like to 1. import an existing Excel-sheet (a template) 2. and add some data to it 3. and save it under a different name afterwards. To me it seems, that pyExcelerator does not support the reading for modification of an Excel-sheet. It allows only the "parse_xls&q

struct.pack('d', ...) -> "frexp() result out of range" (was Re: PyExcelerator)

2006-06-02 Thread John Machin
On 3/06/2006 3:39 AM, [EMAIL PROTECTED] wrote: > I write data to Excel files using PyExcelerator 0.6.3.a and have done > so successfully for small files (10-15 cells). I'm experiencing an > error when writing a big chunk of data (10,000 cells) to Excel. By way > of comparison, the

PyExcelerator

2006-06-02 Thread tkpmep
I write data to Excel files using PyExcelerator 0.6.3.a and have done so successfully for small files (10-15 cells). I'm experiencing an error when writing a big chunk of data (10,000 cells) to Excel. By way of comparison, the same data writes perfectly well to a csv file using Python'

RE: Formmating excel cells with PyExcelerator or COM

2006-05-15 Thread Tim Golden
't find | how to do this with PyExcelerator neither with COM. Any clue? Nearly always, a good starting point for doing this kind of thing with COM (obviously doesn't apply for PyExcelerator) is to record a Macro in Excel itself which does what you want, and then to translate the co

Formmating excel cells with PyExcelerator or COM

2006-05-10 Thread Mauricio Tellez
Hi, I just want that a number like 1234.123 appear in excel as 1,234.12In excel I just select some cells, then right click on them and select "Cell Formatting" then select Number, and check "Use thounsands separator" and 2 decimal places. I can't find how to do this with P

Re: PyExcelerator: How does one close a file?

2006-05-10 Thread tkpmep
John, I had spelled PyExcelerator with a capital P, but it worked just fine. I then checked the directory it was installed in, and found it read C:\Python24\Lib\site-packages\PyExcelerator. As soon as I changed the directory name to C:\Python24\Lib\site-packages\pyExcelerator, my programs stopped

Re: PyExcelerator: How does one close a file?

2006-05-09 Thread John Machin
On 10/05/2006 7:57 AM, [EMAIL PROTECTED] wrote: > I use PyExcelerator to write data into Excel files, and repeatedly call > the function writeData with different filenames fn from my main > routine. Unfortunately, only one file - the last one - is created. The > problem seems to lie w

PyExcelerator: How does one close a file?

2006-05-09 Thread tkpmep
I use PyExcelerator to write data into Excel files, and repeatedly call the function writeData with different filenames fn from my main routine. Unfortunately, only one file - the last one - is created. The problem seems to lie with the fact that I do not close the existing file before calling the

Pyexcelerator

2006-04-06 Thread Jens Kabella
Hi, i have a question with the pyexcelerator Modul. I´m using the Version 0.6.3a. Now I want to know how I can change the Colour Palette of Excel. I want to have my own colours for pattern_fore_colour and things like this. I want to build the colours dynamically. I have the RGB values for the

Re: Using PyExcelerator

2006-03-23 Thread rbsharp
I would agree with the author, pyExcelerator is good at writing Excel but xlrd is better at reading. I was recently forced to use them in tandem because pyExcelerator had problems reading an Excel sheet and xlrd had no problems. greetings, Richard Sharp John Machin wrote: > On 23/03/2006 9

Re: Using PyExcelerator

2006-03-22 Thread John Machin
On 23/03/2006 9:01 AM, [EMAIL PROTECTED] wrote: > I have just installed PyExcelerator, and now want to use it to read > Excel spreadsheets with a variable number of rows and columns and with > multiple sheets. Unfortunately, no documentation seems to accompany > PyExcelerator. Does an

Using PyExcelerator

2006-03-22 Thread tkpmep
I have just installed PyExcelerator, and now want to use it to read Excel spreadsheets with a variable number of rows and columns and with multiple sheets. Unfortunately, no documentation seems to accompany PyExcelerator. Does anyone know of a good source of documentations and/or examples? The

Re: Installing PyExcelerator to write Excel files from Python

2006-03-21 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > I downloaded PyExcelerator.zip as I need to write some data into Excel > files, and tried unsuccessfully to install it. I unzipped the files > into C:/Python24/Lib/site-packages/PyExcelerator You should unzip to somewhere else, the install step will put the

Re: Installing PyExcelerator to write Excel files from Python

2006-03-21 Thread tkpmep
Thanks!!! I had a good laugh at myself after i got it working. -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing PyExcelerator to write Excel files from Python

2006-03-21 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I downloaded PyExcelerator.zip as I need to write some data into Excel > files, and tried unsuccessfully to install it. I unzipped the files > into C:/Python24/Lib/site-packages/PyExcelerator, and in a python > command line window typed > > >>&g

Installing PyExcelerator to write Excel files from Python

2006-03-21 Thread tkpmep
I downloaded PyExcelerator.zip as I need to write some data into Excel files, and tried unsuccessfully to install it. I unzipped the files into C:/Python24/Lib/site-packages/PyExcelerator, and in a python command line window typed >>>os.chdir("C:/Python24/Lib/site-packages

Re: PyExcelerator - mishandling of formulas?

2005-11-17 Thread Marco Aschwanden
a > sheet use "!" charater: Data!A1 > Right you are. It "changed" somehow... anyhow, even if you change it, it will choke on the same line. I received an answer... a workaround which doesn't make me happy, but it is, as it is! [...] This is not a bug. This is

Re: PyExcelerator - mishandling of formulas?

2005-11-17 Thread Serge Orlov
mishandling and I will gladly retreat my bug report. > > In a formula, I would like to point to a field on another worksheet. > pyExcelerator chokes on these references! > > > > import pyExcelerator > > wb = pyExcelerator.Workbook() > ws_summary = wb.add_sheet('Summa

PyExcelerator - mishandling of formulas?

2005-11-15 Thread Marco Aschwanden
. In a formula, I would like to point to a field on another worksheet. pyExcelerator chokes on these references! import pyExcelerator wb = pyExcelerator.Workbook() ws_summary = wb.add_sheet('Summary') ws_data = wb.add_sheet('Data') ws_summary.write(0,0, pyExcelerator.Form