Page 1 of 1

changin font size of filde in report by user in runtime

Posted: Mon Dec 21, 2009 2:18 am
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

changin font size of filde in report by user in runtime

Posted: Mon Dec 21, 2009 7:02 am
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.