Hello,
This strange behavior depends on the place of your code in which you change report components margins. Maybe you do this after report rendering. If yes, then you need to try to use following code instead your:
Code: Select all
pageDescription.Margins = new StiMargins(0, 1, 2, 3);
Why do you need to create a new margins object? Report engine during report rendering use StiMargins object from report template (it does not create a copy of this object). This behavior decrease memory consumption and increase the speed of report rendering (this method is used for different properties).
Please contact us if you need any help.
Thank you.