report's saybitmap method

report's saybitmap method

Postby Marcelo Via Giglio » Mon Apr 13, 2009 1: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
Marcelo Via Giglio
 
Posts: 1065
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: report's saybitmap method

Postby Enrico Maria Giordano » Mon Apr 13, 2009 3:59 pm

It seems to work fine here:

Code: Select all  Expand view  RUN
#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: Select all  Expand view  RUN
OPEN BITMAP "c:\fwh\bitmaps\open.bmp"


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: report's saybitmap method

Postby Marcelo Via Giglio » Mon Apr 13, 2009 4: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
Marcelo Via Giglio
 
Posts: 1065
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: report's saybitmap method

Postby Enrico Maria Giordano » Mon Apr 13, 2009 4:50 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: report's saybitmap method

Postby Marcelo Via Giglio » Mon Apr 13, 2009 6: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
Marcelo Via Giglio
 
Posts: 1065
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia


Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 0 guests