Re: Reports format problem

From: Richard Senior <richard_at_r-senior.demon.co.uk>
Date: 1 Aug 2001 08:15:50 GMT
Message-ID: <9k8drm$r70$3_at_gate.local>


In article <3b667985$1_at_news.norweb.net>,

        "Steve E." <steve.eckersley_at_ITS.lancscc.gov.uk> writes:

> My problem is that at the end of the report I need to print an image at the
> bottom of the last page. This is not as easy at it might sound. The form

You are right there!

> will be variable length depending on data. If I put the image in the margin
> it prints on every page of the report, if I try and change the "print on"
> page settings I get an illegal print condition error due to the item being
> in the margin.

I played around for an hour or so trying to get something at the bottom of the last page but to no avail. However, it might be worth clarifying the Print On property. "Last Page" doesn't refer to the last page of the report, it refers to the last page on which an object is formatted where it formats over several pages.

For example, if you have a repeating frame within an outer frame that spreads across three pages, you might have a heading enclosed in the outer frame that you want to display as "My Data", "My Data (continued)", etc. The "My Data" part would be set to print on all pages, i.e. all pages that the outer frame is formatted on. The "(continued)" would be set to print on all but the first page.

Going back to your problem, margin objects are not enclosed by objects that print across multiple pages, so printing on the last page of the enclosing object doesn't make sense. I tried anchors but I couldn't anchor to the margin or a margin object, so I think your image has to be a margin object, otherwise it won't force to the bottom of the page. Perhaps you could put the image in the margin and write a format trigger that only returns true on the last page? If I get time today, I might have another go - although there is srw.get_page_num(), there is nothing immediately obvious to tell you that you are on the last page ...

-- 
Regards,

Richard Senior
Mill Dam Consulting Ltd, London
Oracle Consulting & Training
Received on Wed Aug 01 2001 - 10:15:50 CEST

Original text of this message