Make sure you've specified a page-size in your output statement. A page-size of 0(zero) will not do what you want. My GUESS is that's where the problem is (as it's very subtle which can make it hard to find).
Other than that, following is a bit of code that works for me.
form header
'S A L E S O R D E R' at 20 skip(1)
'Print Date:' at 3 today format "99/99/9999"
('Page: ' + trim(string(page-number(s-out),'>>>9'))) format 'x(10)' at 36
'Order Number:' at 1 ordh-file.ordref 'Order Date:' at 30 ordh-file.orddate skip(0)
'Order Type:' at 3 ordh-file.ordtype 'Quote Ref:' at 31 ordh-file.rfqref skip(0)
'Order Status:' at 1 ordh-file.stat skip(2)
with
no-box
no-labels
page-top
frame f-hdr.
Hope that helps.
Mark
djeanveau said:
Hello everyone,
I'm trying to get a header on every page out to an output stream. I've done this before multiple times a while back, but just can get it to work.
Denis