private Rdl.StyleType CreateHeaderTableCellTextboxStyle() { Rdl.StyleType headerTableCellTextboxStyle = new Rdl.StyleType(); headerTableCellTextboxStyle.Items = new object[] { "Bold", "9pt", "Century Gothic", "Blue", CreateBorderStyle(), }; headerTableCellTextboxStyle.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.FontWeight, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.Color, Rdl.ItemsChoiceType5.BorderStyle, }; return(headerTableCellTextboxStyle); }
private Rdl.StyleType CreateTableCellTextboxStyleForGroupBy() { Rdl.StyleType style = new Rdl.StyleType(); style.Items = new object[] { "Red", "Left", "Century Gothic", "10pt", "Bold", }; style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.Color, Rdl.ItemsChoiceType5.TextAlign, Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.FontWeight, }; return(style); }
private Rdl.StyleType CreateTableCellTextboxStyle(int i, string fieldName) { Rdl.StyleType style = new Rdl.StyleType(); if (i == 0) { style.Items = new object[] { "=iif(RowNumber(Nothing) mod 2, \"AliceBlue\", \"White\")", "Left", "Century Gothic", "9pt", // " =IIf(InStr(Fields!"+fieldName +".Value, 'AA -Anjali Agarwal') > 0 or IsNothing(Fields!"+fieldName+".Value), 'Red', 'Black') ", "#CD6C37", "Bold", }; } else { style.Items = new object[] { "=iif(RowNumber(Nothing) mod 2, \"AliceBlue\", \"White\")", "Left", "Century Gothic", "9pt", "Black", }; } style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.BackgroundColor, Rdl.ItemsChoiceType5.TextAlign, Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.Color, Rdl.ItemsChoiceType5.FontWeight, }; return(style); }
private StyleType CreateTableCellTextboxStyle() { var style = new StyleType(); style.Items = new object[] { //"=iif(RowNumber(Nothing) mod 2, \"AliceBlue\", \"White\")", "Left", "8pt", CreateTableCellTextboxBorderColorStyle(), CreateTableCellTextboxBorderStyleStyle(), CreateTableCellTextboxBorderWidthStyle(), "2pt", "2pt", "2pt", "2pt", "Middle" }; style.ItemsElementName = new[] { //Rdl.ItemsChoiceType5.BackgroundColor, ItemsChoiceType5.TextAlign, ItemsChoiceType5.FontSize, ItemsChoiceType5.BorderColor, ItemsChoiceType5.BorderStyle, ItemsChoiceType5.BorderWidth, ItemsChoiceType5.PaddingTop, ItemsChoiceType5.PaddingBottom, ItemsChoiceType5.PaddingLeft, ItemsChoiceType5.PaddingRight, ItemsChoiceType5.VerticalAlign }; return style; }
private StyleType CreateHeaderTableCellTextboxStyle() { var headerTableCellTextboxStyle = new StyleType(); headerTableCellTextboxStyle.Items = new object[] { "700", "10pt", CreateTableCellTextboxBorderColorStyle(), CreateTableCellTextboxBorderStyleStyle(), CreateTableCellTextboxBorderWidthStyle(), "2pt", "2pt", "2pt", "2pt", "Middle", }; headerTableCellTextboxStyle.ItemsElementName = new[] { ItemsChoiceType5.FontWeight, ItemsChoiceType5.FontSize, ItemsChoiceType5.BorderColor, ItemsChoiceType5.BorderStyle, ItemsChoiceType5.BorderWidth, ItemsChoiceType5.PaddingTop, ItemsChoiceType5.PaddingBottom, ItemsChoiceType5.PaddingLeft, ItemsChoiceType5.PaddingRight, ItemsChoiceType5.VerticalAlign, }; return headerTableCellTextboxStyle; }
public static ParagraphsType CreateParagraphs(string value, StyleType style) { var paragraphs = new ParagraphsType(); var pgr = new Paragraph(); var txtRuns = new TextRunsType(); var v = new LocIDStringWithDataTypeAttribute {Value = value}; txtRuns.TextRun = new[] { new TextRun{Value = v, Style=style}.Create() }; pgr.TextRuns = txtRuns; if (style != null) { pgr.Style = style; } paragraphs.Paragraph = new[] { pgr.Create() }; return paragraphs; }
public static ParagraphsType CreateParagraphs(string value, StyleType style) { ParagraphsType paragraphs = new ParagraphsType(); Paragraph pgr = new Paragraph(); TextRunsType txtRuns = new TextRunsType(); LocIDStringWithDataTypeAttribute v = new LocIDStringWithDataTypeAttribute(); v.Value = value; txtRuns.TextRun = new TextRunType[] { new TextRun() { Value = v, Style=style }.Create() }; pgr.TextRuns = txtRuns; if (style != null) { pgr.Style = style; } paragraphs.Paragraph = new ParagraphType[] { pgr.Create() }; return paragraphs; }