Forum > Lazarus Extra Components

LazReport: how to export to PDF in A4 when the only printer is 80mm?

(1/2) > >>

lainz:
LazReport: how to export to PDF in A4 when the only printer available in the system is 80mm?

The main problem is that the report gets chopped at the right, loosing important information from the report. Say we loss about 2 centimeters.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---|                     |||                     |||                     |||                     ||                        ^ normal A4                     ^ chopped here

zeljko:
Install CUPS-PDF driver and print to that virtual printer ?

lainz:
I forget to say it's Linux Mint 32 bit... nothing can be installed, the fix should come from patching or changing the code of lazreport....

We can generate the PDF, but is chopped at the right... :'(

TRon:

--- Quote from: lainz on January 30, 2024, 09:47:32 pm ---I forget to say it's Linux Mint 32 bit... nothing can be installed, the fix should come from patching or changing the code of lazreport....

--- End quote ---
Uhm... I fear that in that case you can expect to have to wait a long time. I fail to recognize how this can be solved by lazreport. Could you elaborate why lazreport could be accountable for the chopped off bits ? (I really can't seem to wrap my head around it)

fwiw: I use many programs (on Linux) and while I actually do (still) have a printer, make use of a virtual pdf printer using cups which allows me to print to a variety of different 'paper formats', even a0 if required :)

lainz:
Is an ESC/POS printer with a linux system. There are no other printers available.

Our system is cross platform and the bug is only in that Linux machine. So it should be about lazreport trying to get A4 size that's predefined somewhere in that printer, but there's no way of fixing the A4 size? If is wrong defined in that 80mm printer?

Navigation

[0] Message Index

[#] Next page

Go to full version