FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Appear Empty paper when use TReport
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Appear Empty paper when use TReport
Posted: Sun Jan 17, 2016 10:26 AM
Hi
I just test small program from my old code to new FWH version.
Appear Empty paper?
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Appear Empty paper when use TReport
Posted: Sun Jan 17, 2016 05:23 PM

Richard,

It looks like your report is printing too close to the bottom margin which is causing a page feed. You can try changing the margins in the printer setup or changing them in the program code.

Regards,
James


Use the method "margin" to change the default 0.2 inch margins.

TReport::Margin( nValue, nType, nScale ) --> nil

Modify any of the top, left, bottom & right report margins.

nValue The value of the new margin to be used. Default is 0.2.

nType The type of margin to be changed:

                      LEFT   1  (default)
                      TOP    4
                      RIGHT  2
                      BOTTOM 5

nScale Inches or centimeters to be used:

                      INCHES          1  (default)
                      CENTIMETERS 2

Use the manifest constants:

RPT_LEFT
RPT_RIGHT
RPT_TOP
RPT_BOTTOM


FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Appear Empty paper when use TReport
Posted: Sun Jan 17, 2016 07:41 PM

Hello Richard,
I fixed these problem for me like this:

viewtopic.php?f=3t=31090p=179578hilit=oreport#p179578

Best regards,
Otto

&&&

Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Appear Empty paper when use TReport
Posted: Mon Jan 18, 2016 02:00 AM

Hi James, Otto

Thanks a lot for help me.
The problem be solved.

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Appear Empty paper when use TReport
Posted: Mon Jan 18, 2016 02:09 PM

Can the issue be solved by suitably setting top and bottom margins by

oRep:Margin( nPixels, RPT_BOTTOM, 0 )
and
oRep:Margin( nPixels, RPT_TOP, 0 )
?

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion