I'm trying to create a report similar to the "Labels" from res.partner but with exact sizes, I have well width but height size is impsible. I put a height of 68mm to div, but the print is 58mm. Any ideas?
page_partners is a list of lists with 8 res.partner recordset.
<t t-foreach="partners" t-as="page_partners">
<div style="min-width:194mm; min-height: 272mm; border: 1px solid red">
<div style="float: left; min-width: 50%; min-height: 68mm; border: 1px solid black" t-foreach="page_partners" t-as="partner">
you need to generate the pdf to make sure the result is the same each times you print a report.
you need to check the dpi of the report "paper format" which is use to generate the report. the 100dpi and 400dpi are different result.
I set 240dpi for my report, and it is still not generate correct size in mm, but it is acceptable.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/21/15, 4:24 AM|
|Seen: 542 times|
|Last updated: 3/29/16, 5:04 AM|