Is it possible to have page/report margins on variables?
If yes, can you tell me how?
Thanks in advance.
Margins on varaibles
Re: Margins on varaibles
Hello.
Thank you.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?Niqu wrote:Is it possible to have page/report margins on variables?
If yes, can you tell me how?
Thank you.
Re: Margins on varaibles
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.
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
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.
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
This is what I wanted. Thank you for help once again.
Re: Margins on varaibles
Hello,
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.