|
| [WB21] Print header of table on everypage ? |
| Iniciado por guest, 21,jun. 2016 14:36 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 21,junio 2016 - 14:36 |
Hi,
I have a Pageheader with some general info, and a body with a table. Data is coming from OOP objects.
Generaly things work, but I don't know how to print the header labels of my table that is in the body on a new page.
I cannot seem to call iPrintBlock from the Page Header !!
First page is: - Page Header - Start Of Document - Extra 1 (via iPrintBlock from Start Of Document) - Body Header (via iPrintBlock from Start Of Document) - Body - Page Footer - End of Document
I am using some extra iteration blocks to print some extra data after Start Of Document and the Body header of the table for the first page.
Next Pages are: - Page Header - Body - Page Footer
How do I get the Body Header printed on this new page ??
Thanks Danny |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,junio 2016 - 15:09 |
Hi Danny,
Is your code in the "Before print" event or in the "After print" event? You can't call iPrintBlock() in the "Before print" event.
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,junio 2016 - 16:04 |
Hi,
No it was in de After print of the Page_Header. It generated a runtime error:
(in this try I subsituted the Page_Header by MyPageHeader to see if that woud fix the problem, but it did not.
WL call: Process of 'After printing MyPageHeader (server)' (RPT_xxxxxxx), line 2, thread 0 'iPrintBlock' function, syntax 0
What happened? Report or block cannot be printed by page header code. Move print code to another block (start of document for example).
Error code: 210046 Level: fatal error
It would be better of there is also a Body_Header and Body_Footer available ?
Or maybe someone has some tricks ?
Danny |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,junio 2016 - 16:35 |
Hi Danny,
Usually we use a standard page header to print the table labels for the body from page to page, along with the general information. If we need to switch we use an iteration (swapping between one page header block to the other) or better, a ..Plane of the page header. So we do not call the "print" of it, it does it all by itself.
Another trick could be to use the "Start of document" as first page header (printed only once). Then the smaller "page header" with the option "invisible only on the first page".
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,junio 2016 - 17:14 |
Alexandre,
Thanks for your awsers, I will try to see if I can get it working with panes.
Danny |
| |
| |
| | | |
|
| | | | |
| | |
|