FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A report-sample of a imagelist with memos from DBF ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
A report-sample of a imagelist with memos from DBF ?
Posted: Mon Aug 12, 2013 07: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



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 :-)
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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: A report-sample of a imagelist with memos from DBF ?
Posted: Mon Aug 12, 2013 10:30 AM
Code (fw): Select all Collapse
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
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: A report-sample of a imagelist with memos from DBF ?
Posted: Mon Aug 12, 2013 06: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 ?



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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: A report-sample of a imagelist with memos from DBF ?
Posted: Tue Aug 13, 2013 02: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.

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

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

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

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

Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: A report-sample of a imagelist with memos from DBF ?
Posted: Tue Aug 13, 2013 07: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 :



Memo of image 4 is splitied without showing the image .



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



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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: A report-sample of a imagelist with memos from DBF ?
Posted: Wed Aug 14, 2013 03: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

Continue the discussion