How do I turn off the report writer information dialogue box

We have orders that keep coming up with the warning dialogue box saying the page has been resized and the users have to keep clicking ok on it.

Is there a way to turn this off within the reports and if so what is the code and where does it have to go?

many thanks

U can use the following statement in the init()-method of the report (after the super()-Call)

element.printJobSettings().suppressScalingMessage(true);