Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr, 7 Monaten
Letzter Beitrag:
vor 1 Jahr, 7 Monaten
Beteiligte Autoren:
Danny Lauwers, Alexandre Leclerc

[WB21] Print header of table on everypage ?

Startbeitrag von Danny Lauwers am 21.06.2016 12:36


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 ??



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

von Alexandre Leclerc - am 21.06.2016 13:09

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 ?


von Danny Lauwers - am 21.06.2016 14:04
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

von Alexandre Leclerc - am 21.06.2016 14:35

Thanks for your awsers, I will try to see if I can get it working with panes.


von Danny Lauwers - am 21.06.2016 15:14
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.