Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 4 Jahren, 9 Monaten
Letzter Beitrag:
vor 4 Jahren, 9 Monaten
Beteiligte Autoren:
Stefan Bentvelsen, Arie, Ericus

[WD17] Printing start_of_document block on every page

Startbeitrag von Stefan Bentvelsen am 10.10.2013 10:07

Hi all,

I want to print the start_of_document block of a report on every page by code, depending of a boolean in my report. Is there anyone who have done this ?
Or do I have to disable the start-of-document block and use only the page-header block and for following pages a substitute block ?

I've tried to iPrintBlock(START_OF_DOCUMENT) in the initialization code of the page-header block, when iPageNum() > 1, but that isn't allowed in (runtime error).

Explenation: I have an invoice report the works nice. On the second (and further) page, is logically no start-of-document block printed, so the text starts higher on the page. Now there are clients who wants to use the same preprinted forms for the second (and further) pages. In that case, the start-of-document block must also be printed, or may be an empty block (of the same size as the start-of-document block) must be printed in that place.


Hi Stefan

Can you not make that block visible, invisible based on the parameter you passed.

In the before print code of the block.


Ericus Steyn

von Ericus - am 10.10.2013 10:43
Hi Ericus,

thanks for your response, but may be I was not clear enough.
In the first case I want to print the start-of-document block only ones per invoice. In the second case, I want to print the start-of-document block on every page. It is thus not a case of making the block visible or invisible.

von Stefan Bentvelsen - am 10.10.2013 11:07
you have to move the start-of-document stuff to another block, be it the page-header or a iteration block.
Then you can dos as Ericus said, make it visible (in case of the header-block-option) or use iPrintBlock (in case of a iterationblock) when necessary.

von Arie - am 10.10.2013 12:05
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.