How to change position of text at run time

Stimulsoft Reports.NET discussion
Post Reply
swapnali2282
Posts: 8
Joined: Fri Mar 25, 2011 3:28 am
Location: mumbai

How to change position of text at run time

Post by swapnali2282 »

Hi,

In stimulsoft is it possible to change the position of text at run time?how to do that ?

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

How to change position of text at run time

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
swapnali2282
Posts: 8
Joined: Fri Mar 25, 2011 3:28 am
Location: mumbai

How to change position of text at run time

Post by swapnali2282 »

Hi,

suppose at design time I wrote same text (using text component)at position x 5.80 and Y 0.00.on perticular condition (if value came form Data Source is true) then
diplay that text on position x0.00 y0.00

means at run time based on condition i want to chage position of text .is it possible in stimulsoft?

How to do that?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to change position of text at run time

Post by Alex K. »

Hello,

As a way, you can use the following code in BeforePrint event of text component.

Code: Select all

if (YourCondition)
	Text1.Left = 2;
else
	Text1.Left = 0;
Thank you.
Attachments
903.SampleReport.mrt
(3.97 KiB) Downloaded 387 times
Post Reply