How to create style in c#
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"/>
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
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]