LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: JAVH on April 01, 2019, 10:54:37 AM

Title: Bad size printing
Post by: JAVH 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.

(http://img18124.imagevenue.com/loc203/th_04962_label2_122_203lo.jpg) (http://img18124.imagevenue.com/img.php?image=04962_label2_122_203lo.jpg)

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.
Title: Re: Bad size printing
Post by: Arin Alex 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 
Title: Re: Bad size printing
Post by: JAVH 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 :(
Title: Re: Bad size printing
Post by: Arin Alex 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.
Title: Re: Bad size printing
Post by: JAVH 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!!
Title: Re: Bad size printing
Post by: Arin Alex on April 02, 2019, 11:02:38 PM
Hi!
Try activate setPageSizeToPrinter property in the PageItem.
Title: Re: Bad size printing
Post by: Arin Alex 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?
Title: Re: Bad size printing
Post by: JAVH 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!!!
Title: Re: Bad size printing
Post by: Arin Alex 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 :)