Problem to Print Image

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Problem to Print Image

Post by Silvio.Falconi »

I made
local aAttivo := {TImage():Define( "BTN_PNG_TICK"),TImage():Define("BTN_PNG_TICK_RED")}

REPORT oRep PREVIEW

COLUMN TITLE "Attivo" DATA "" SIZE 5 IMAGE IMGDATA aAttivo[ IIF( oElementi:ELATTIVO,1,2)] HEIGHT 1.2 ALPHALEVEL 128

but I not see any images

it's perhaps the resources are png file ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Problem to Print Image

Post by nageswaragunupudi »

Please keep it simple like this:

Code: Select all

   COLUMN TITLE "IMAGE" DATA If( oStates:RecNo() % 2 == 0, "ON", "OFF" ) IMAGE
 
where "ON" and "OFF" are resource names.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem to Print Image

Post by Silvio.Falconi »

it seem run ok

Image

some has change something on Report class ?


another ...look 3th column of report

I have a fields with code color
I wish print an space with the color of the code color , any solution ?
I'm thinka a solution type
COLUMN TITLE "Colore" CHARTDATA oElementi:ELCOLORE COLOR GetBackColor(oElementi:ELCOLORE)
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Problem to Print Image

Post by nageswaragunupudi »

some has change something on Report class ?
NO.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem to Print Image

Post by Silvio.Falconi »

Image

now I could be satisfied even if I wanted to color the third column of course with the colors of each record
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply