fralx / LimeReport

Report generator for Qt Framework
http://limereport.ru/
Other
403 stars 151 forks source link

Printing with Dymo / Border Problem? #184

Open Athesis opened 5 years ago

Athesis commented 5 years ago

Hi,

I like to use LimeReports with an Dymo LabelWriter 450 ... With kinda bad results. Everything is scaled down on the Label even if the page is perfectly fitted to the label sizes.

I guess, since if I export the same Label to PDF it shows way bigger borders, that the data send to the printer has other, bigger, dimensions then the setup page geometry.

I created my test prints from the Designer. Is there a possibility to fix this?

fralx commented 5 years ago

Hi! Have you tried to activate fullPage property on PageItem?

Athesis commented 5 years ago

Hi! No I didn't. Thanks, moved me along quite a bit. But still, printing on Dymo LabelWriter is kinda ... weird. If I can I'll provide more informations about soon!

Athesis commented 5 years ago

Hi! I had some time looking into the details. I've got 25x54mm Labels, on Dymo they have an Printing-Area of 23x50mm. After some experimenting I set the Page-Size to exactly this size with no margins and "fullPage" checked. The main problem then is: On normal Dymo-Use the printing starts at 2mm on the label, trough LimeReports it starts at 4mm.

fralx commented 5 years ago

Hi! May I take a look at your label template?

Athesis commented 5 years ago

Sure,

Here you go. I tried with an older version (1.4.7) and the current version (1.5.0)

t_25x54.zip

The printing result is always something like this: DSC_0551

Thanks for your help!

fralx commented 5 years ago

I will try to solve the problem. I have some idea why it happens and i need some time to test it.

fralx commented 5 years ago

Hi! As i can see you use landscape page orientation. If you change it to portrait how the label will be printed?

Athesis commented 5 years ago

Hi,

It's shrinking it down and pint it as Portrait:

DSC_0555

fralx commented 5 years ago

Hi! I have created a new branch https://github.com/fralx/LimeReport/tree/feature/Custom_size_printing. Could you test if it will change the size of the borders?

Athesis commented 4 years ago

It changed at least something, I'll look into it in more detail soon ...

t_25x54.zip

DSC_0556

Image on the Top is printed with current Master, bottom with the Custom_size_printing branch, both printed with same settings on printer

fralx commented 4 years ago

Hi! I have added the ability to send page margins to the printer via using printerMargin(Left, Top, Right, Bottom) and changePrinterMargins properties. I think this can be useful for moving the label to the right position. Could you check it?

yanis60 commented 4 years ago

I have the same problem me too, see my examples when i print tickets the problem is the right margin, may be due to the band!? 20190903_184730_Film1 ![Uploading 20190905_090151_Film1.jpg…]()

fralx commented 4 years ago

@yanis60 Have you checked it on the Custom_size_printing branch?