Page 1 of 1
anchoring feature in stimulsoft?
Posted: Mon May 28, 2012 1:04 am
by marconi1222
i want to keep a position of a component in the report relative to the page size , i mean when i re size the page i want the component to remain in the same position , is there a way to do this
Thank You.
anchoring feature in stimulsoft?
Posted: Mon May 28, 2012 10:21 am
by HighAley
Hello.
marconi1222 wrote:i want to keep a position of a component in the report relative to the page size , i mean when i re size the page i want the component to remain in the same position , is there a way to do this
You could do it with Scale Content and Rebuild Report properties at the Page Size dialog of the Viewer.
Thank you.
anchoring feature in stimulsoft?
Posted: Tue May 29, 2012 1:03 am
by marconi1222
Hello Aleksey ,
Thank you for the answer . but how can i do that using code in .net ?
Thank you.
anchoring feature in stimulsoft?
Posted: Wed May 30, 2012 7:06 am
by Alex K.
Hello,
Please try to use the following code:
Code: Select all
StiResizeReportHelper.ResizeReport(stiReport,
StiPageOrientation.Portrait,
newSize.Kind,
stiReport.Pages[0].Margins,
stiReport.Unit.ConvertFromHInches(newSize.Width),
stiReport.Unit.ConvertFromHInches(newSize.Height),
StiResizeReportOptions.RescaleContent | StiResizeReportOptions.ProcessAllPages,
0);
Thank you.