anchoring feature in stimulsoft?

Stimulsoft Reports.NET discussion
Post Reply
marconi1222
Posts: 2
Joined: Tue May 22, 2012 5:17 am

anchoring feature in stimulsoft?

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

anchoring feature in stimulsoft?

Post 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.
Attachments
1879.ScaleContent.png
1879.ScaleContent.png (55.98 KiB) Viewed 722 times
marconi1222
Posts: 2
Joined: Tue May 22, 2012 5:17 am

anchoring feature in stimulsoft?

Post by marconi1222 »

Hello Aleksey ,

Thank you for the answer . but how can i do that using code in .net ?


Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

anchoring feature in stimulsoft?

Post 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.
Post Reply