FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem to Print Image
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Problem to Print Image

Posted: 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 March-April 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Problem to Print Image

Posted: Fri Jun 28, 2019 03:20 PM
Please keep it simple like this:
Code (fw): Select all Collapse
   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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Problem to Print Image

Posted: Sat Jun 29, 2019 07:26 AM
it seem run ok



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 March-April 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Problem to Print Image

Posted: Sat Jun 29, 2019 08:11 AM
some has change something on Report class ?


NO.
Regards



G. N. Rao.

Hyderabad, India
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Problem to Print Image

Posted: Sat Jun 29, 2019 08:30 AM


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 March-April 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

Continue the discussion