Change component font size by code

Stimulsoft Ultimate discussion
Post Reply
beso
Posts: 34
Joined: Wed Jun 23, 2010 7:32 am
Location: GEORGIA

Change component font size by code

Post by beso »

Hello,

how can i change text box Font Size by code

In Ms Access Report it is very simple :
Me.R_NmSTR.FontSize = (Me.FS)

Me.FS is a column in my table

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

Re: Change component font size by code

Post by Alex K. »

Hello,

You can use the following code in the BeforePrint event:
Text1.Font = new System.Drawing.Font("Arial", Me.FS);

Thank you.
Post Reply