Jump to content


Click the link below to see the new game I'm developing!


Photo
- - - - -

Report footer using Rpt Header ID 'F'


3 replies to this topic

#1 mattbrand

mattbrand

    Member

  • Members
  • PipPip
  • 13 posts

Posted 08 May 2003 - 03:06 PM

I have a report that I would like to print a footer on every page, and thus I am using the Report Header 'F'. It works properly for every page, except the last page. It does not print on the very bottom of the last page, but skips a page, and prints on the bottom of a blank page after the last report page. I believe the cause of this is another report header, '1', which is at a control break for the end of the report. However, I am using absolute line numbers, and cannot see why this should not work.

Any ideas?

Matthew Brand
Data Systems Inc.
Burlington, VT

#2 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

Posted 08 May 2003 - 06:28 PM

Do you have any value set for the "skip (lines) after" in the end of file control break ??
Things should be made as simple as possible, but not simpler

#3 mattbrand

mattbrand

    Member

  • Members
  • PipPip
  • 13 posts

Posted 12 May 2003 - 04:21 PM

No, there are no skip lines set in the control break of screen 1.

Header 1, which is used in the control break, starts at absolute line 59, and prints on lines 59. 61. 63 and 65. Header F starts at absolute line 76, and prints on lines 76-80. I had to bump the maximum line # for report headers to 80.

This still is not working for me...any other ideas?

Matt

Edited by mattbrand, 12 May 2003 - 04:22 PM.


#4 Kevin Bruss

Kevin Bruss

    Expert

  • Members
  • PipPipPipPip
  • 113 posts
  • Gender:Male
  • Location:Oklahoma City, OK

Posted 12 May 2003 - 05:33 PM

Reports are fun, aren't they? :)

Some ideas:

Perhaps you need to add another control break for &$EOF and DSEL it before the other control break.

If you're using a skip-value (ie, 999) perhaps that control break line needs to be DSEL'd-(CB).

Another idea would be to bump the "80" to "81" and see if that helps. (I'm not sure if the "80" includes the exact number of lines needed for the Footer (F) or if it is
not calculated as part of that number)

Try printing to an output file to compare a printed example. I'm wondering if your blank page even has a page header; if it doesn't, it would seem that your "page" is too long (roll back the 80 to a lower number). With the flat file, check for control characters. There should be a Page-feed character, or several blank lines to act as page feed.. You may have to literally get out the ruler and count how many blank
lines are there, etc.

Good luck.. be curious to see how this turns out..

-Kevin



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Click the link below to see the new game I'm developing!