To add a new page I use:
OfficePager->AddAdvPage("Test");
If FreeOnClose = true then the page is automatically freed after I click the close button. But, when I want to exit the application with multiple pages still in TAdvOfficePager opened will it automatically free all pages or do I need programatically to close (free) those pages?
All pages still in the AdvOfficePager will be destroyed / freed automatically when the application is closed, regardless of the setting FreeOnClose.
Does that include TAdvOfficePage objects that I created using operator new? Or do I need to free those manually?
You don't need to free these when you added these to TAdvOfficePager
That's great. Thanks.