Report preview bug (fixed)

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Report preview bug (fixed)

Post by Enrico Maria Giordano »

The following sample shows an empty report:

Code: Select all

#include "Fivewin.ch"
#include "Report.ch"


FUNCTION MAIN()

    LOCAL oRpt

    USE C:\XHARBOUR\TEST

    REPORT oRpt PREVIEW

    COLUMN TITLE "FIRST";
           DATA FIELD -> first

    COLUMN TITLE "LAST";
           DATA FIELD -> last

    COLUMN TITLE "STREET";
           DATA FIELD -> street

    COLUMN TITLE "CITY";
           DATA FIELD -> city

    END REPORT

    ACTIVATE REPORT oRpt

    CLOSE

    RETURN NIL
EMG
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Warning: This fix is just for FWH 2.6 and 2.7.

Fixed. This change in needed in source\classes\rpreview.prg line 530:

oCoors1 := TRect():New( 40,;
Max( ( nWidth / 2 ) - nMetaWidth, 10 ),;
nHeight,;
Min( ( nWidth / 2 ) + nMetaWidth, nWidth - 20 ) )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply