Page 1 of 1
Margins on varaibles
Posted: Mon Aug 27, 2012 10:39 am
by Niqu
Is it possible to have page/report margins on variables?
If yes, can you tell me how?
Thanks in advance.
Re: Margins on varaibles
Posted: Mon Aug 27, 2012 1:09 pm
by HighAley
Hello.
Niqu wrote:Is it possible to have page/report margins on variables?
If yes, can you tell me how?
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
Re: Margins on varaibles
Posted: Tue Aug 28, 2012 5:43 am
by Niqu
Sure, i can try.
Page in properties has fields like "Margins". Default is it: (1, 1, 1, 1). I wanted to know, that is it possible to has it on variables? For example:
In code it look like this:
this.Page1.Margins = new Stimulsoft.Report.Components.StiMargins(1, 1, 1, 1);
I want something like this:
this.Page1.Margins = new Stimulsoft.Report.Components.StiMargins(leftMargin, rightMargin, topMargin, bottomMargin);
where leftMargin, rightMargin, topMargin, bottomMargin are double variables.
Maybe it is obviously, then sorry, for stupid question. I couldn't just find how to do it.
Re: Margins on varaibles
Posted: Wed Aug 29, 2012 7:29 am
by HighAley
Hello.
You could do such code in the Begin Render event of the report or in the Before Print event of the Page.
Thank you.
Re: Margins on varaibles
Posted: Wed Aug 29, 2012 11:30 am
by Niqu
This is what I wanted. Thank you for help once again.
Re: Margins on varaibles
Posted: Thu Aug 30, 2012 8:07 am
by Ivan
Hello,
We are always glad to help you.
Let us know if you need any additional help.
Thank you.