I have a report where I have to set variable value of "detail band on new page when less than" depending on the content of the page . Is there any way to do that.
Will making Report listener's object help and in which method it would be written.
Then study FoxyPreviewer.
You'll learn a lot about report listener.
If you've studied my approach, then you began to understand a little listener's Render method and its parameters.
You saw which one control's the position and size, and that was one of your questions.
Respectfully,
Vilhelm-Ion Praisach
Resita, Romania
If I understand correctly:
You want to print multiple complete addresses on the same page if space available. That is if space available after printing x bands.
Is the address band the last one on the report ?
You could have a counter which will tell where you are on the report at any given time. Assuming your line height is the same for all bands and then add extra to take take care of when band title if any is printed.
- Each band has its own counter.
- Bands with with header have minimum value when printed
- when starting at address band you already know how many lines you have printed by adding counters of all bands.
- Reset counters to 0 at new page.
- Breake overflow lines into 2 lines in preprosess.
- Add to the counter when you encounter this overflow line. Set this in the table so that you can sum them and then condition with the counter.
- Assign LABELLEN N 4 and update this field with number of lines per address. This will help you know what is the length of the current label in lines.
Vilhelm - Yes, I have studied and used foxypreviewer. I is quite helpful for me to create PDFs.
Are u talking abt complete mode in which ReportListeners are used.
Is there any way to write AdjustObjectSize Event in frx itself using runtime extensions as you have used "AfterBand" Event in Execute When tab.
It's easy to show which event is bounded.
From the Properties of the desired object (label, textbox, band a.s.o) choose Other, then Run-time extensions
Fill Execute When text box with .T. and add MESSAGEBOX(m.tcMethodToken) at the end of Run-time extensions editbox.
Respectfully,
Vilhelm-Ion Praisach
Resita, Romania
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.