Detecting when the Paper Size changes
In my report, I'm creating all the bands, the memo views and the data programmatically.
The user can add and remove the columns that get displayed in the report from within the application.
Sometimes there are more columns that would fit on an A4 page so after the preview is displayed,
the user changes the paper size from the "Page Settings" Dialog to A3.
But when this happens, the data does not stretch to fill the new paper size.
How do I detect that the paper size has changed so that I can redraw the bands correctly?
The user can add and remove the columns that get displayed in the report from within the application.
Sometimes there are more columns that would fit on an A4 page so after the preview is displayed,
the user changes the paper size from the "Page Settings" Dialog to A3.
But when this happens, the data does not stretch to fill the new paper size.
How do I detect that the paper size has changed so that I can redraw the bands correctly?
Comments
It doesn't look like "OnBeginDoc" gets called when the page size is changed from the "Page Settings" dialog, what else can I try?
When I select "Apply to all pages" and then click the "OK" button on the Page Settings dialog, I get this error message: "Dataset "" does not exist".
Any idea why this is happening?