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__ = """$Id: image.py,v 1.3 2005/03/27 12:47:06 rvk Exp $""" from pyExcelerator import * w = Workbook() ws = w.add_sheet('Image') class Protection(Formatting.Protection): def __init__(self, cell_locked,formula_hidden): self.cell_locked = cell_locked self.formula_hidden = formula_hidden protection = Protection(0,0) t = ((protection.cell_locked & 0x01) << 0) | ((protection.formula_hidden & 0x01) << 1) print t style = XFStyle() style.protection = protection ws.write(2, 2, '1', style) ws.insert_bitmap('python.bmp', 2, 2) ws.insert_bitmap('python.bmp', 10, 2) ws.protect = False ws.wnd_protect = False ws.obj_protect = False ws.scen_protect = False w.protect = False w.wnd_protect = False w.obj_protect = False w.save('image.xls')
-- http://mail.python.org/mailman/listinfo/python-list