alexpreyer
10th January 2007, 17:52
We're using for printing our reports (not all) an external software.
This software analyses the print-stream comming out of baan and selects the needed data.
My problem now ist to give a signal for the software when a page break is. I tried this by creating a footer layout in which a special word is printed. But then I have a strange behavior. Sometimes the word is printed at the right place (at the end of each page), sometimes it is only printed on the report end and sometimes it is not printed.
I don't know whats going wrong here.
Thanks
Alex
george7a
10th January 2007, 18:11
Hi,
As it is written in the Reports sections (http://www.baanboard.com/programmers_manual_baanerp_help_report_scripts_report_sections)
footer printed at the bottom of each page
Can you explain what is the difference between the three runs that you tried? When does it print at the bottom of each page? When it does not?
Also can you share you layouts (print screen)? Is the"page" checkbox checked for the footer?
- George
norwim
10th January 2007, 18:54
Hi there,
instead of changing reports why don't you insert the 'signal word' with awk?
As Baan should fill up pages with empty lines, it is very easy to count them and do a modulo division to find the n-th line.
Feel free to send me an example.
What I am suggesting is to change processing from
Baanproggy -> catch report data (tmp-file) -> another software to
Baanproggy -> catch report data (tmp-file) -> awk -> another software
(But to be honest, I rather have in mind:
Baanproggy -> catch report data (tmp-file) -> awk -> result
... sorry, once again couldn't resist that one :-)
hth
Norbert
alexpreyer
11th January 2007, 10:04
Hi,
Can you explain what is the difference between the three runs that you tried? When does it print at the bottom of each page? When it does not?
Also can you share you layouts (print screen)? Is the"page" checkbox checked for the footer?
- George
I tried it with two different customers.
First Customer:
- on display --> only at the end of the report
- on printer --> signalword not printed
Second Customer:
- on display --> printed correct at each page
- on printer --> only at the end of page 1
And yes the checkbox for page is checked.
nstead of changing reports why don't you insert the 'signal word' with awk?
As Baan should fill up pages with empty lines, it is very easy to count them and do a modulo division to find the n-th line.
Feel free to send me an example.
What I am suggesting is to change processing from
Baanproggy -> catch report data (tmp-file) -> another software to
Baanproggy -> catch report data (tmp-file) -> awk -> another software
(But to be honest, I rather have in mind:
Baanproggy -> catch report data (tmp-file) -> awk -> result
Sounds good. I'll make a try.
Thanks