add css for stitext
Posted: Tue Jan 19, 2010 2:14 am
Code: Select all
StiComponentsCollection components = report.GetComponents();
foreach (StiComponent component in components)
{
if (component is StiText)
{
(component as StiText).Font = new System.Drawing.Font("Arial", (component as StiText).Font.Size,FontStyle.Bold);
}
}
But if remove the FontStyle.Bold,it can work well.So I think it is the cause of the FontStyle.Bold.I want to change the css style of the stitext.But I do know how to add
css to a stitext ,e.g font-weight.Could I do this ?Thank you!
Code: Select all
StiComponentsCollection components = report.GetComponents();
foreach (StiComponent component in components)
{
if (component is StiText)
{
(component as StiText).Font = new System.Drawing.Font("Arial", (component as StiText).Font.Size);
}
}