Appear Empty paper when use TReport

Appear Empty paper when use TReport

Postby richard-service » Sun Jan 17, 2016 10:26 am

Hi
I just test small program from my old code to new FWH version.
Appear Empty paper?
Image
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Appear Empty paper when use TReport

Postby James Bott » Sun Jan 17, 2016 5: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

----------------------------
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Appear Empty paper when use TReport

Postby Otto » Sun Jan 17, 2016 7:41 pm

Hello Richard,
I fixed these problem for me like this:
viewtopic.php?f=3&t=31090&p=179578&hilit=oreport#p179578

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Appear Empty paper when use TReport

Postby richard-service » Mon Jan 18, 2016 2:00 am

Hi James, Otto

Thanks a lot for help me.
The problem be solved.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Appear Empty paper when use TReport

Postby nageswaragunupudi » Mon Jan 18, 2016 2: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
User avatar
nageswaragunupudi
 
Posts: 10641
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 88 guests