Problem to Print Image

Problem to Print Image

Postby Silvio.Falconi » Fri Jun 28, 2019 11:17 am

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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6815
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem to Print Image

Postby nageswaragunupudi » Fri Jun 28, 2019 3:20 pm

Please keep it simple like this:
Code: Select all  Expand view
  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
nageswaragunupudi
 
Posts: 10264
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Problem to Print Image

Postby Silvio.Falconi » Sat Jun 29, 2019 7:26 am

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)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6815
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem to Print Image

Postby nageswaragunupudi » Sat Jun 29, 2019 8:11 am

some has change something on Report class ?


NO.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10264
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Problem to Print Image

Postby Silvio.Falconi » Sat Jun 29, 2019 8:30 am

Image

now I could be satisfied even if I wanted to color the third column of course with the colors of each record
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6815
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: karinha and 16 guests