FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos report's saybitmap method
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
report's saybitmap method
Posted: Mon Apr 13, 2009 01:38 PM

Hello,

this bug has many years, until now I don't know how can I fix this

The saybitmap method don't work with bitmap from resources, this work properly with
bmp files directly.

Maybe some body have the solution?

best regards

Marcelo

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: report's saybitmap method
Posted: Mon Apr 13, 2009 03:59 PM
It seems to work fine here:

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oPrn

    PRINT oPrn PREVIEW
        PAGE
            oPrn:SayBitmap( 0, 0, "OPEN", 1000, 1000 )
        ENDPAGE
    ENDPRINT

    RETURN NIL


This is the RC file:

Code (fw): Select all Collapse
OPEN BITMAP "c:\fwh\bitmaps\open.bmp"


EMG
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: report's saybitmap method
Posted: Mon Apr 13, 2009 04:15 PM

Enrico,

yes from printer class this work ok, but not from the report class, this is strange, because the report class use printer class inside, but from report this not work

reagards

Marcelo

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: report's saybitmap method
Posted: Mon Apr 13, 2009 04:50 PM

It doesn't work because TReport sets the resource to prev32.dll hiding the currently active resource file.

EMG

Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: report's saybitmap method
Posted: Mon Apr 13, 2009 06:17 PM

Enrico

yuo are right, I move prev32.dll to prev.red and add to my project, and delete all the reference to external resource in rpreview.prg,
then I have a more compact enviroment and I can work with resources in report, thanks for your time

This means that I was wrong and no FW

regards

Marcelo

Continue the discussion