Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4916 Vistas

Hi, I've been doing almost all my reports on webkit, because are easier to do. Any way, I was wondering how could I put a background image for the report, or for a group of reports.

I know a little of CSS and HTML, enough to make a reports on webkit. But im triubuling with this because i dont know where I should put my image, on the header/footer area of webkit, or directly on CSS.

Hope someone has been on my same problem and fix it. Any way thanks in advance...

Avatar
Descartar
Mejor respuesta

I did that and it worked beautifully: I scanned a paper form into a png, placed it's in my Webkit report as a backgroud image, using base64, and then used CSS to place the OpenERP data fields on the right places:

This is the HTML head I used:

<head>
    <style type="text/css">
        ${css}
    </style>
    <style type="text/css"><!--
    .table1 { 
        width: 180mm;
        height: 255mm;
        font-size:10;
        background-image: url(data:image/png;base64,{{image base64 goes here}};
        background-repeat: no-repeat; 
        background-size: 100%;
        background-origin: border-box;

    }--></style>
</head>
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
mar 15
6522
2
mar 15
6171
3
mar 15
7386
4
mar 15
12975
1
mar 15
6010