Como hacer Reportes con ReportLab.

168 views
Skip to first unread message

Roberto Matarrita

unread,
Oct 13, 2017, 3:23:39 AM10/13/17
to pytho...@googlegroups.com
Buenas noches.
Estoy aprendiendo a utilizar reportlab, para hacer mis reportes de python. Necesito saber o conseguir ejemplos, para hacer un reporte en reportlab, pero accesando una base de datos. Incluso que pueda hacer cortes de control, totales .

Necesito saber si todo esto se puede hacer desde reportlab.

Gracias

Roberto
Costa Rica.

Álvaro Justen [Turicas]

unread,
Oct 27, 2017, 2:47:54 PM10/27/17
to pytho...@googlegroups.com
Hola, Roberto,

Yo he hecho una investigacion acerca de librerias para generar
reportes en PDF en Python y la mejor alternativa que encontre fue
wkhtmltopdf, porque puedo hacer todo en HTML y solo llamar el software
para entonces convertir. La libreria que estoy utilizando es pdfkit
(pip install pdfkit), que llama el executable de wkhtmltopdf.
Si utilizas Heroku, ese buildpack que cree puede ayudarte con la
instalacion de wkhtmltopdf:
https://github.com/simplefractal/heroku-buildpack-wkhtmltopdf

Saludos,
Álvaro Justen "Turicas"
turicas.info / @turicas (twitter, github, youtube)
+55 41 999 311 221
> --
> --
> You received this message because you are subscribed to the Google
> Groups "PythonChile" group.
> To post to this group, send email to chile...@googlegroups.com
> To unsubscribe from this group, send email to
> chilepython...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/chilepython?hl=en?hl=es
> ---------------------------------------
> Web: http://www.pythonchile.cl
> Twitter: http://twitter.com/PythonChile
>
> ---
> Has recibido este mensaje porque estás suscrito al grupo "PythonChile" de
> Grupos de Google.
> Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes,
> envía un correo electrónico a pythonchile...@googlegroups.com.
> Para acceder a más opciones, visita https://groups.google.com/d/optout.

Alvaro Brange

unread,
Oct 27, 2017, 4:17:48 PM10/27/17
to pytho...@googlegroups.com
Hola Roberto,
Si te interesa probar alternativas a reportLab, podrías mirar WeasyPrint:

Te permite convertir HTML/CSS a PDF.

Saludos,
Álvaro Brange
Sent from mobile device
Para obtener más opciones, visita https://groups.google.com/d/optout.

Roberto Matarrita

unread,
Nov 23, 2017, 9:36:37 PM11/23/17
to PythonChile
Gracias Alvaro por la respuesta.
Voy a investigarlo y ver como me va.

Roberto.
Reply all
Reply to author
Forward
0 new messages