Layout at Runtime.

Stimulsoft Reports.NET discussion
Post Reply
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Layout at Runtime.

Post by amitkaushik »

Hi,

I am looking to create a report according to number of records.
for example if number of records are upto 4 then it is in Portrait and if greater then 4 the landscape,
I have to put cross control on it as well.

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

Re: Layout at Runtime.

Post by Alex K. »

Hello,

Please check the sample project in attachment.

Thank you.
Attachments
DynamicCreateReport.zip
(15.46 KiB) Downloaded 236 times
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Layout at Runtime.

Post by amitkaushik »

Thanks for sample,

But will it possible use template but change it Portrait and landscape at runtime according to data.

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

Re: Layout at Runtime.

Post by Alex K. »

Hello,

You can use the Orientation property for StiPage component in code.

Thank you.
Post Reply