How to create style in c#

edited June 2013 in FastReport .NET
I want to create report style in my program with c#.

How to create style's attribute: Fill.Color ?

my c# code:
report.Styles = new StyleCollection();
FastReport.Style style1 = new FastReport.Style();
style1.Name = "style1";
style1.Font = new Font("Tahoma", 38);
//style.Fill ??????????????????????????????????????
report.Styles.Add(style1);



I want to create .frx file xml:
<Style Name="style1" Fill.Color="LightSkyBlue" Font="Tahoma, 38pt"/>

Comments

  • edited 9:58AM
    //add style
    report.Styles = new StyleCollection();
    FastReport.Style style1 = new FastReport.Style();
    style1.Name = "style1";
    style1.Font = new Font("Tahoma", 24);
    System.Windows.Media.Color color = Colors.Moccasin;

    FastReport.GlassFill fill = new GlassFill(System.Drawing.Color.FromArgb(255,color.R,color.G,color.[img]style_emoticons/<#EMO_DIR#>/cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" />,0.2f,false); style1.Fill = fill; report.Styles.Add(style1);[/img]

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.