PageSizeChanging
This event is sent before TE adjusts the page size.
void PageSizeChanging(TejEvent ev)
{
....
}The relevant TejEvent fields:
int NewPageSize;
This event is fired only when the TFLAG5_VARIABLE_PAGE_SIZE flag is set. When this flag is set, TE calculates the new page size to contain the entire content of the control. Then the control fires this event to allow your application to override or modified the suggested page size. The page size is provided by the 'NewPageSize' parameter in the twips unit. You can set the 'NewPageSize' parameter to 0 to disable the current page adjustment. You can also set it to another value to make the page bigger than the suggested size. However, you can not set this parameter to a lower value because TE needs to display the entire content on one page.