# Transfooter and transheader

**URL:** https://www.dynamicsuser.net/t/transfooter-and-transheader/8497
**Category:** Developers Forum
**Created:** [March 31, 2004, 12:11pm UTC](https://www.dynamicsuser.net/t/transfooter-and-transheader/8497 "2004-03-31T12:11:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![abrou](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@abrou](https://www.dynamicsuser.net/u/abrou)
#### Post date: [March 31, 2004, 12:11pm UTC](https://www.dynamicsuser.net/t/transfooter-and-transheader/8497/1 "2004-03-31T12:11:39Z")

</div>

How to determine the number of lines to print in the body before trigering transfooter/transheader?

---

<div class="post-metadata">

### Author: ![asnape](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@asnape](https://www.dynamicsuser.net/u/asnape)
#### Post date: [March 31, 2004, 1:42pm UTC](https://www.dynamicsuser.net/t/transfooter-and-transheader/8497/2 "2004-03-31T13:42:15Z")

</div>

Abrou I don’t think there’s a good way to determine how big the body section will be. I know we have tried things such as line counting to allow a maximum number of body lines per page, but its very messy.

---

<div class="post-metadata">

### Author: ![abrou](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@abrou](https://www.dynamicsuser.net/u/abrou)
#### Post date: [March 31, 2004, 3:30pm UTC](https://www.dynamicsuser.net/t/transfooter-and-transheader/8497/3 "2004-03-31T15:30:52Z")

</div>

Alex, Is it possible to influence the triggering of the transfooter or the transheader? I cannot find any reading materials on that subject. Are there any? Could you also please give me a hint on how to count the max number of lines in the body? Thank you!

---

<div class="post-metadata">

### Author: ![Anna\_Perotti](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Anna\_Perotti](https://www.dynamicsuser.net/u/Anna_Perotti)
#### Post date: [March 31, 2004, 4:31pm UTC](https://www.dynamicsuser.net/t/transfooter-and-transheader/8497/4 "2004-03-31T16:31:11Z")

</div>

> quote:
> 
> * * *
> 
> _Originally posted by abrou_  
> Alex, Is it possible to influence the triggering of the transfooter or the transheader? I cannot find any reading materials on that subject. Are there any? Could you also please give me a hint on how to count the max number of lines in the body? Thank you!
> 
> * * *

Transfooters and transheaders are handled by Navision and you can do little to control them. You can set CurrReport.SHOWOUTPUT function, according to your own conditions, but to control that conditions might be quite messy. To count lines in the body you may define an integer variable, say LineCount and a boolean, say PageFull. In the OnPreSection trigger of each body section you may add some code like this: ` LineCount := LineCount + 1; PageFull := LineCount >= 50; (being 50 the maximun of allowed lines) IF PageFull THEN LineCount := 0; ` In the OnPresection trigger of your Transheader and Transfooter sections you may add the code: ` CurrReport.SHOWOUTPUT := PageFull; ` Although, I would rather change them into body sections as well, if I were to use such a trick. Anna
