private Rdl.StyleType CreateCellStyle() { Rdl.StyleType style = new Rdl.StyleType(); style.Items = new object[] { CreateBorderColorStyleWidth("#74A4D4"), CreateBorderColorStyleWidth("Solid"), "Tahoma", "8pt", "Middle", m_cellFormat, CreateBorderColorStyleWidth("0.5pt"), }; style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.BorderColor, Rdl.ItemsChoiceType5.BorderStyle, Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.VerticalAlign, Rdl.ItemsChoiceType5.Format, Rdl.ItemsChoiceType5.BorderWidth, }; return(style); }
private Rdl.StyleType CreateHeaderStyle() { Rdl.StyleType style = new Rdl.StyleType(); style.Items = new object[] { "#DAE9F3", CreateBorderColorStyleWidth("#74A4D4"), CreateBorderColorStyleWidth("Solid"), "Tahoma", "8pt", "Center", "Middle", CreateBorderColorStyleWidth("0.5pt"), }; style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.BackgroundColor, Rdl.ItemsChoiceType5.BorderColor, Rdl.ItemsChoiceType5.BorderStyle, Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.TextAlign, Rdl.ItemsChoiceType5.VerticalAlign, Rdl.ItemsChoiceType5.BorderWidth, }; return(style); }
private Rdl.StyleType CreateTableCellTextboxStyle(TextItem item) { Rdl.StyleType style = new Rdl.StyleType(); style.Items = new object[] { item.Font.Name, item.Font.Size + "pt", item.Font.Bold ? "400" : "100", GetAlign(item.Align.Alignment), "Middle", CreateBorderStyle(), "1pt", "1pt", "1pt", "1pt", }; style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.FontWeight, Rdl.ItemsChoiceType5.TextAlign, Rdl.ItemsChoiceType5.VerticalAlign, Rdl.ItemsChoiceType5.BorderStyle, Rdl.ItemsChoiceType5.PaddingLeft, Rdl.ItemsChoiceType5.PaddingTop, Rdl.ItemsChoiceType5.PaddingRight, Rdl.ItemsChoiceType5.PaddingBottom, }; return(style); }
private Rdl.StyleType CreateHeaderCellTextboxStyle() { Rdl.StyleType headerCellTextboxStyle = new Rdl.StyleType(); headerCellTextboxStyle.Items = new object[] { "20pt", "Left", }; headerCellTextboxStyle.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.TextAlign, }; return(headerCellTextboxStyle); }
private Rdl.StyleType CreateTableCellTextboxStyle() { Rdl.StyleType style = new Rdl.StyleType(); style.Items = new object[] { "=iif(RowNumber(Nothing) mod 2, \"AliceBlue\", \"White\")", "Left", }; style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.BackgroundColor, Rdl.ItemsChoiceType5.TextAlign, }; return(style); }
private Rdl.StyleType CreateHeaderTableCellTextboxStyle() { Rdl.StyleType headerTableCellTextboxStyle = new Rdl.StyleType(); headerTableCellTextboxStyle.Items = new object[] { "700", "14pt", }; headerTableCellTextboxStyle.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.FontWeight, Rdl.ItemsChoiceType5.FontSize, }; return(headerTableCellTextboxStyle); }
private Rdl.TextboxType CreateTextbox(string expression, Rdl.StyleType style) { Rdl.TextboxType textbox = new Rdl.TextboxType(); textbox.Name = "Textbox" + (++m_textboxCount); textbox.Items = new object[] { expression, true, style, }; textbox.ItemsElementName = new Rdl.ItemsChoiceType14[] { Rdl.ItemsChoiceType14.Value, Rdl.ItemsChoiceType14.CanGrow, Rdl.ItemsChoiceType14.Style, }; return(textbox); }
private Rdl.StyleType CreateTextboxStyle(TextItem item) { Rdl.StyleType style = new Rdl.StyleType(); style.Items = new object[] { GetAlign(item.Align.Alignment), GetVAlign(item.Align.LineAlignment), item.Font.Name, item.Font.Size + "pt", item.Font.Bold ? "700" : "100", }; style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.TextAlign, Rdl.ItemsChoiceType5.VerticalAlign, Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.FontWeight, }; return style; }
private Rdl.StyleType CreateTextboxStyle(TextItem item) { Rdl.StyleType style = new Rdl.StyleType(); style.Items = new object[] { GetAlign(item.Align.Alignment), GetVAlign(item.Align.LineAlignment), item.Font.Name, item.Font.Size + "pt", item.Font.Bold ? "700" : "100", }; style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.TextAlign, Rdl.ItemsChoiceType5.VerticalAlign, Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.FontWeight, }; return(style); }
private Rdl.StyleType CreateHeaderTableCellTextboxStyle(TextItem item) { Rdl.StyleType headerTableCellTextboxStyle = new Rdl.StyleType(); headerTableCellTextboxStyle.Items = new object[] { item.HeaderFont.Name, item.HeaderFont.Size + "pt", item.HeaderFont.Bold ? "700" : "100", "Center", "Middle", CreateBorderStyle(), }; headerTableCellTextboxStyle.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.FontWeight, Rdl.ItemsChoiceType5.TextAlign, Rdl.ItemsChoiceType5.VerticalAlign, Rdl.ItemsChoiceType5.BorderStyle, }; return(headerTableCellTextboxStyle); }
private Rdl.StyleType CreateTableCellTextboxStyle() { Rdl.StyleType style = new Rdl.StyleType(); style.Items = new object[] { "=iif(RowNumber(Nothing) mod 2, \"AliceBlue\", \"White\")", "Left", }; style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.BackgroundColor, Rdl.ItemsChoiceType5.TextAlign, }; return style; }
private Rdl.StyleType CreateHeaderTableCellTextboxStyle() { Rdl.StyleType headerTableCellTextboxStyle = new Rdl.StyleType(); headerTableCellTextboxStyle.Items = new object[] { "700", "14pt", }; headerTableCellTextboxStyle.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.FontWeight, Rdl.ItemsChoiceType5.FontSize, }; return headerTableCellTextboxStyle; }
private Rdl.StyleType CreateTableCellTextboxStyle(TextItem item) { Rdl.StyleType style = new Rdl.StyleType(); style.Items = new object[] { item.Font.Name, item.Font.Size + "pt", item.Font.Bold ? "400" : "100", GetAlign(item.Align.Alignment), "Middle", CreateBorderStyle(), "1pt", "1pt", "1pt", "1pt", }; style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.FontWeight, Rdl.ItemsChoiceType5.TextAlign, Rdl.ItemsChoiceType5.VerticalAlign, Rdl.ItemsChoiceType5.BorderStyle, Rdl.ItemsChoiceType5.PaddingLeft, Rdl.ItemsChoiceType5.PaddingTop, Rdl.ItemsChoiceType5.PaddingRight, Rdl.ItemsChoiceType5.PaddingBottom, }; return style; }
private Rdl.StyleType CreateHeaderTableCellTextboxStyle(TextItem item) { Rdl.StyleType headerTableCellTextboxStyle = new Rdl.StyleType(); headerTableCellTextboxStyle.Items = new object[] { item.HeaderFont.Name, item.HeaderFont.Size + "pt", item.HeaderFont.Bold ? "700" : "100", "Center", "Middle", CreateBorderStyle(), }; headerTableCellTextboxStyle.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.FontWeight, Rdl.ItemsChoiceType5.TextAlign, Rdl.ItemsChoiceType5.VerticalAlign, Rdl.ItemsChoiceType5.BorderStyle, }; return headerTableCellTextboxStyle; }
private static Rdl.StyleType CreateTextboxStyle(int num) { Rdl.StyleType style = new Rdl.StyleType(); if (num == 1) { style.Items = new object[] { "Bold", "Century Gothic", "11pt", "Blue" }; } else if (num == 2) { style.Items = new object[] { "Normal", "Century Gothic", "9pt", "Black" }; } else if (num == 3) { style.Items = new object[] { "Normal", "Century Gothic", "9pt", "Black" }; } else if (num == 4) { style.Items = new object[] { "Bold", "Century Gothic", "10pt", "Black", // "Black" }; } else if (num == 5) { style.Items = new object[] { "Normal", "Century Gothic", "9pt", "Black" }; } style.ItemsElementName = new Rdl.ItemsChoiceType5[] { Rdl.ItemsChoiceType5.FontWeight, Rdl.ItemsChoiceType5.FontFamily, Rdl.ItemsChoiceType5.FontSize, Rdl.ItemsChoiceType5.Color, // Rdl.ItemsChoiceType5.BorderColor, }; return(style); }