changin font size of filde in report by user in runtime

Stimulsoft Reports.NET discussion
Post Reply
sima1984
Posts: 1
Joined: Mon Dec 21, 2009 1:39 am

changin font size of filde in report by user in runtime

Post by sima1984 »

Hi
my lanquage program is C# and i am useing Stimureport
i want to write a program that user can change fone size of fildes in report by selecting a number from a combo box in run time
i should say i have databandes and pageheaderbandes in my report an data are in thoes
and also i try follownig code but it doesnt work for me becuase date are in databand and pageheaderband
((StiText)stiReport1.Pages["Page1"].Components["Text1"]).font= new System.Drawing.Font("Arial",float.parse( combobox.text))
;
Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

changin font size of filde in report by user in runtime

Post by Edward »

Hi

Please use the RenderedPages collection for this purpose instead:

stiReport1.RenderedPages["Page1"].Components["Text1"])

also in the rendered report could be more than one Text1 is for example Text1 is inside of the DataBand and was rendered more than once.

Thank you.
Post Reply