c# - Active Reports - Find out what page a control is on before the final print -
i need find out page control on after report data has been added. depending on how data has been added above (e.g. table rows), control on page 1, 2 or 3. reason needing page number find out if control straddles 2 pages. if want nudge down enough make sure not split on 2 pages
as control in question dynamically added during reportstart
event can't tell page end on report data hasn't been added yet.
i'm pretty sure i'll able in detail_beforeprint
event fires each page of report , this.pagenumber
gives current page.
inside detail_beforeprint
can find control using:
var mycontrol= this.detail.controls["mycontrol"];
but mycontrol
not have properties might suggest page on. can help?
i'm using active reports 6 , visual studio 2010
what you're asking not possible find out. can retrieve pagenumber report tell last page control print to. control not have page number because possible print on more 1 page.
however said, possible effect want using keeptogether property. if set true, ar try keep control on single page , move automatically you. , handles case length of control might more single page wouldn't need moved since have no effect. hope helps.
Comments
Post a Comment