Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: Bad size printing  (Read 3155 times)

JAVH

  • Newbie
  • *
  • Posts: 10
    • View Profile
Bad size printing
« on: April 01, 2019, 10:54:37 AM »
Hi, i trying to use limereport with a printer label, doing tests, I adjust the page size in Designer, in preview the size is Ok too, but when I send to print, the size is very small, maybe at 50%, but if a send to save to PDF and then print from PDF software, the size are ok.



This is a fragment of my lrxml file:

Code: [Select]
<pageItem ClassName="PageItem" Type="Object">
          <objectName Type="QString">ReportPage1</objectName>
          <geometry width="620" x="0" y="0" Type="QRect" height="127"/>
          <children Type="Collection">
            <item ClassName="ReportHeader" Type="Object">
              <objectName Type="QString">ReportHeader1</objectName>
              <geometry width="620" x="0" y="0" Type="QRect" height="128"/>
              <children Type="Collection">
                <item ClassName="BarcodeItem" Type="Object">
                  <objectName Type="QString">BarcodeItem1</objectName>
                  <geometry width="286" x="290" y="0" Type="QRect" height="122"/>
                  <children Type="Collection"/>
                  <zOrder Value="0" Type="qreal"/>
                  <borders Value="0" Type="enumAndFlags"/>
                  <parentName Type="QString">ReportHeader1</parentName>
                  <borderLineSize Value="0" Type="int"/>
                  <isVisible Value="1" Type="bool"/>
                  <borderColor Value="#000000" Type="QColor"/>
                  <itemLocation Value="0" Type="enumAndFlags"/>
                  <stretchToMaxHeight Value="1" Type="bool"/>
                  <itemAlign Value="4" Type="enumAndFlags"/>
                  <content Type="QString">$V{barcode}</content>
                  <barcodeType Value="20" Type="enumAndFlags"/>
                  <testValue Type="QString">$V{barcode}</testValue>
                  <foregroundColor Value="#000000" Type="QColor"/>
                  <backgroundColor Value="#ffffff" Type="QColor"/>
                  <whitespace Value="2" Type="int"/>
                  <angle Value="0" Type="enumAndFlags"/>
                  <barcodeWidth Value="0" Type="int"/>
                  <securityLevel Value="2" Type="int"/>
                  <pdf417CodeWords Value="928" Type="int"/>
                  <inputMode Value="1" Type="enumAndFlags"/>
                  <hideText Value="1" Type="bool"/>
                </item>

I need to send any parameter before print for adjust the page size??

Thanks!!

Best regards.

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Bad size printing
« Reply #1 on: April 01, 2019, 09:11:18 PM »
Hi!
Where did you get the limereport's source codes?
If you use the github.com you can try to get source codes from "develop" branch and test it.
It may resolve the problem 

JAVH

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Bad size printing
« Reply #2 on: April 02, 2019, 12:20:38 AM »
I had master branch, I downloaded develop branch like you suggest but I got the same result :(

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Bad size printing
« Reply #3 on: April 02, 2019, 05:46:07 PM »
JAVH, Which printer are you using?
I have made a test and got the same result in both cases.

JAVH

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Bad size printing
« Reply #4 on: April 02, 2019, 10:55:12 PM »
Hi Arin Alex, I'm using a Brother QL-800

https://www.brother.com.mx/es-MX/Impresoras/53/ProductDetail/ql800

I tried also changing orientation but send small.

Thanks!!

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Bad size printing
« Reply #5 on: April 02, 2019, 11:02:38 PM »
Hi!
Try activate setPageSizeToPrinter property in the PageItem.

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Bad size printing
« Reply #6 on: April 02, 2019, 11:08:42 PM »
If you print a report containing elements with the same font size on "A4", will the printed text be larger?

JAVH

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Bad size printing
« Reply #7 on: April 02, 2019, 11:34:13 PM »
Hi Alex!! Thanks for the support, I did enabled setPageSizeToPrinter and the same was small.

But I did enable "fullPage" option too and then fix it.

Thanks a lot!!!

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Bad size printing
« Reply #8 on: April 02, 2019, 11:45:02 PM »
Oh ;) I forgot about this parameter :) too many cases :)
I am very glad that you find the solution :)