A report-sample of a imagelist with memos from DBF ?

A report-sample of a imagelist with memos from DBF ?

Postby ukoenig » Mon Aug 12, 2013 7:44 am

Hello,

I need a REPORT-sample of a Image-list with MEMOS.
The images are adjusted to a given width ( keeping ratio )
and the row height to a given image-height if the memolines less this value
or using the maximum height of the memos INFO1 - 3
Any sample exists ?

The DBF-structure :
IMAGE C 25
INFO1 M 10
INFO2 M 10
INFO3 M 10

Image

STATIC FUNCTION PRINT_ST1()
LOCAL oReport, aImgList := {}

DBSELECTAREA("STYLE1")

Maxbe printing with a defined Image-array ?
DBGOTOP()
I := 1
DO WHILE !EOF()
AADD( aImgList, STYLE1->IMAGE )
DBSKIP(+1)
ENDDO

DBGOTOP()

REPORT oReport TITLE "*** IMAGES STYLE 1 ***","" PREVIEW ;
FONT oFONT2

????? IMAGES

COLUMN TITLE "Info 1" DATA STYLE1->INFO1 SIZE 15 MEMO
COLUMN TITLE "Info 2" DATA STYLE1->INFO2 SIZE 15 MEMO
COLUMN TITLE "Info 3" DATA STYLE1->INFO3 SIZE 15 MEMO

END REPORT

ACTIVATE REPORT oReport

RETURN NIL


Best Regards
Uwe :?:
Last edited by ukoenig on Mon Aug 12, 2013 6:03 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: A report-sample of a imagelist with memos from DBF ?

Postby nageswaragunupudi » Mon Aug 12, 2013 10:30 am

Code: Select all  Expand view
DBGOTOP()

REPORT oReport TITLE "*** IMAGES STYLE 1 ***","" PREVIEW ;
FONT oFONT2

COLUMN TITLE "Image"     DATA STYLE1->IMAGE  SIZE 20 IMAGE
COLUMN TITLE "Info 1"    DATA   STYLE1->INFO1   SIZE 15 MEMO
COLUMN TITLE "Info 2"    DATA   STYLE1->INFO2   SIZE 15 MEMO
COLUMN TITLE "Info 3"    DATA   STYLE1->INFO3   SIZE 15 MEMO

END REPORT

ACTIVATE REPORT oReport
 
Regards

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

Re: A report-sample of a imagelist with memos from DBF ?

Postby ukoenig » Mon Aug 12, 2013 6:03 pm

Rao,

thank You very much for the sample.

I noticed a some things.

1. Image-Quality ?
2. big images doesn't fill the given size. They are adjusted to the memolines.
Maybe adding empty lines to fill the defined image-area ?
3. maybe something wrong with the pagebreak ?

Image

Best regards
Uwe :?:
Last edited by ukoenig on Tue Aug 13, 2013 7:24 am, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: A report-sample of a imagelist with memos from DBF ?

Postby nageswaragunupudi » Tue Aug 13, 2013 2:44 am

1. Image height:
If we do not specify the minimum height for the image column, image size is adjusted to the maximum of other columns' memolines, subject to a minimum of 4.
We can also specify minimum height of the image in number of lines or number of pixels

COLUMN ............... IMAGE HEIGHT n // n data lines
COLUMN ............... IMAGE HEIGHT n PIXEL // n pixels height.

2. Image width: You know we can specify the width too.

3. Image is resized, retaining the aspect, to fit within the above width and height and centerd.

4. Quality: I found good quality output while actually printing on a good color printer with good resolution.

5. Last line at page-break:
I did not notice this before. We need to review.
Regards

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

Re: A report-sample of a imagelist with memos from DBF ?

Postby ukoenig » Tue Aug 13, 2013 7:24 am

Thank You very much for the infos.
With a given HEIGHT, it looks much better.
With some more tests, I noticed the problem with the image / memo - combination.
Maybe some calculations needed to force a pagebreak,
if the image of the last row > the last row with memo ?

The 2 screenshots are showing the result :

Image

Memo of image 4 is splitied without showing the image .

Image

I added some lines to the memo of image 4, but no difference ( screenshot 1 ) :

Image

Best Regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: A report-sample of a imagelist with memos from DBF ?

Postby nageswaragunupudi » Wed Aug 14, 2013 3:59 am

I see that handling of image painting at page-breaks need improvement.
We shall attend to this issue in the next release.
Thanks for bringing it up.
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 25 guests

cron