FAQ #2589, published on 2002-10-22
When iConfigure is used to select a printer, the report output does not use the paper size defined in the report but the one defined in the
iConfigure window. What do I do ?
In order to force the paper size, you can use the following code
between the command iConfigure() and the printing of the report:

//Metric size A3
iParameter("PAPERSIZE=A3")

Or also:

//Paper size of the user
iParameter("PAPERSIZE=USERDEFINED")
iParameter("PAGEHEIGHT=3048")
iParameter("PAGEWIDTH=2100")