KeepTogether Event Firing?
ActiveReports for .NET 2.0 Support
KeepTogether Event Firing?
06-23-2005, 3:19 PM
I have a requirement to add "continued" to the bottom of a page if a detail section is split across two pages. Is there any way to know if keeptogether successfully (or un-successfully) fired... or what the value of KeepTogether is say, on PageFooter_Format? or is there another approach?
thanks.
Re: KeepTogether Event Firing?
06-24-2005, 1:31 AM
It will be difficult with only the detail section. The best approach is to use a group Header\Footer.
1. Add Group Header\Footer
2. Set the GroupKeepTogether = all
3. set the datafield to a primary key for the data, if you don't have one create an unbound field that has a new value every record and assign the GroupHeaders datafield to this unbound field.
4. Now you have a way to get the begin point and end point of the detail section(group).
I have attached a sample that shows how to write continued at the bottom of the page if a group spans more than a page (In your case the group header footer would fire for every detail record.)
Eric Johnson
Data Dynamics
Re: KeepTogether Event Firing?
01-13-2010, 1:12 PM
I have my group header/footers setup. I'm using an end user version of the software and cant import the zip you have attached. Is there any way you could add a sample of code showing how I can add the words "Continued" at the top of each additional page a group spans? So if I have Group X and it spans 3 pages, I woudl like to add the word continued at the top of pages 2 & 3 for that group.
Thank you so much!
Ryan
Ryan Brown
Media Environment Design, Inc.
Re: KeepTogether Event Firing?
01-14-2010, 5:09 AM
Hello,
You cannot import the sample in the EDU, however you can use the similar code in the script designer of EDU to print “Continue...”.
To know more about scripting in ActiveReports for .Net 2.0 you may click
here
.
Regards,
Ankit Nigam