hola Lista

Dr Bobus DrBobus en gulic.org
Jue Abr 14 00:27:14 CEST 2005


Hola:

Puede ser lento... depende... define muchas ;)

en windows puedes enviarle el pdf con
win32api.ShellExecute (0, "print", "c:\facturas.pdf", None, ".", 0)

y si todas las facturas están en un único pdf mejor claro.

en linux si tienes instalado y configurado cups te reconocerá el pdf con lo que puedes enviárselo con:

os.system('lpr facturas.pdf')


Saludos



El Tue, 12 Apr 2005 14:56:15 -0700
"Patricio Alarcon Gatica" <patogenaro en hotmail.com> dijo:

> Es primera vez que escribo y porsupuesto primero que nada los saludo a todos 
> y espero me puedan ayudar..
> 
> Mi problema es que quiero imprimir directamente desde el código de python en 
> la impresora una pantalla que corresponde a una factura(glade), lo pude 
> hacer creando un acrhivo pdf pero resulta que es  muy lento(abrir el pdf y 
> despues darle a imprimir es muy lento cuando se hacen muchas facturas).
> Si alguien tiene algun codigo para no pasar por la creación de un pdf o por 
> ultimo lanzar este ultimo directamente a la impresora predeterminada, 
> porfa...
> 
> Yap Muchachos espero cualquier tipo de ayuda...
> Chauuuu
> 
> Patricio Alarcón ...   Patoch
> 
> 
> _______________________________________________
> Python-es mailing list
> Python-es en aditel.org
> http://listas.aditel.org/listinfo/python-es
> 


-- 
On Tue, 12 Nov 1996, David Howells wrote:
> I would imagine this is because /proc files in general have zero lengths, and
> so anything that stat's them will assume that they don't contain anything.
> I find that less doesn't work on them either.
Indeed. To get /proc to work over NFS you have to give the files their
correct length, and that is not done by the normal kernel (because the length
calculations are non-trivial). 
What you _can_ do to fake it and to generally make it work for most cases is
to just create a patched kernel that fakes the lengths to some random value.
I've used this once to debug a kernel problem over NFS. Sick, but potentially
useful (I made all /proc files be 4096 bytes in length, which happens to be a
nice round random number). 
		Linus
(Seen on the linux-kernel list)

------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: no disponible
Type: application/pgp-signature
Size: 189 bytes
Desc: no disponible
URL: <http://mail.python.org/pipermail/python-es/attachments/20050413/62d56fbc/attachment.pgp>
------------ próxima parte ------------
_______________________________________________
Python-es mailing list
Python-es en aditel.org
http://listas.aditel.org/listinfo/python-es


Más información sobre la lista de distribución Python-es