You use realpath as if it construct a path to your image file. But you should
use os.path.join as you did earlier. If you've used web2py upload facilities,
you need an extra step to get the file from the upload folder, see the web2py
book for details.
Nico de Groot
--
Resources:
-
Hello everyone,
I am trying to generate reports using Reportlab in web2py. I'm working on
pythonanywhere.com
I am having some problems because I want to insert an image as header into
the pdf report
this is my report.py
from reportlab.platypus import *
from reportlab.lib.styles import
2 matches
Mail list logo