private static TextboxType CreateTablixTextBoxField(RdlColumnHeader item) { var textBoxStyle = new StyleType { Items = new object[] { "2pt", "2pt", "2pt", "2pt", new BorderType { Items = new object[] { "Solid", "LightGrey" }, ItemsElementName = new [] { ItemsChoiceType2.Style, ItemsChoiceType2.Color, } } }, ItemsElementName = new[] { ItemsChoiceType4.PaddingLeft, ItemsChoiceType4.PaddingRight, ItemsChoiceType4.PaddingTop, ItemsChoiceType4.PaddingBottom, ItemsChoiceType4.Border, } }; var textBoxParagraphs = new ParagraphsType { Paragraph = (new List <ParagraphType> { new ParagraphType { Items = new object[] { new TextRunsType { TextRun = (new List <TextRunType> { new TextRunType { Items = new object[] { new LocIDStringWithDataTypeAttribute { Value = "=Fields!" + item.Value + ".Value" }, new StyleType { Items = new object[] { "8pt" }, ItemsElementName = new [] { ItemsChoiceType4.FontSize } } }, ItemsElementName = new [] { ItemsChoiceType11.Value, ItemsChoiceType11.Style, } } }).ToArray() } }, ItemsElementName = new[] { ItemsChoiceType12.TextRuns, ItemsChoiceType12.Style, } } }).ToArray() }; return(new TextboxType { Name = item.Value, Items = new object[] { true, true, textBoxParagraphs, textBoxStyle }, ItemsElementName = new[] { ItemsChoiceType14.CanGrow, ItemsChoiceType14.KeepTogether, ItemsChoiceType14.Paragraphs, ItemsChoiceType14.Style, } }); }
private static TextboxType CreateTablixTextBoxHeader(string value) { var textBoxStyle = new StyleType { Items = new object[] { "2pt", "2pt", "2pt", "2pt", "#1b75cd", new BorderType { Items = new object[] { "Solid", "LightGrey" }, ItemsElementName = new [] { ItemsChoiceType2.Style, ItemsChoiceType2.Color, } } }, ItemsElementName = new[] { ItemsChoiceType4.PaddingLeft, ItemsChoiceType4.PaddingRight, ItemsChoiceType4.PaddingTop, ItemsChoiceType4.PaddingBottom, ItemsChoiceType4.BackgroundColor, ItemsChoiceType4.Border, } }; var textBoxParagraphs = new ParagraphsType { Paragraph = (new List <ParagraphType> { new ParagraphType { Items = new object[] { new TextRunsType { TextRun = (new List <TextRunType> { new TextRunType { Items = new object[] { new LocIDStringWithDataTypeAttribute { Value = value }, new StyleType { Items = new object[] { "White", "Bold" }, ItemsElementName = new [] { ItemsChoiceType4.Color, ItemsChoiceType4.FontWeight, } } }, ItemsElementName = new [] { ItemsChoiceType11.Value, ItemsChoiceType11.Style, } } }).ToArray() }, new StyleType { Items = new object[] { "Center" }, ItemsElementName = new [] { ItemsChoiceType4.TextAlign, } } }, ItemsElementName = new[] { ItemsChoiceType12.TextRuns, ItemsChoiceType12.Style, } } }).ToArray() }; return(new TextboxType { Name = "textBox" + Guid.NewGuid().ToString().Split('-')[0], Items = new object[] { true, true, textBoxParagraphs, textBoxStyle }, ItemsElementName = new[] { ItemsChoiceType14.CanGrow, ItemsChoiceType14.KeepTogether, ItemsChoiceType14.Paragraphs, ItemsChoiceType14.Style, } }); }
private static ReportItemsType CreateFooterReportItems() { var result = new List <ParagraphType> { new ParagraphType { Items = new object[] { new TextRunsType { TextRun = (new List <TextRunType> { new TextRunType { Items = new object[] { new LocIDStringWithDataTypeAttribute { Value = "COPYRIGHT ©2014 - UNIVERSIDADE CORPORATIVA SEBRAE" }, new StyleType { Items = new object[] { "Calibri", "9pt", "#1b75cd" }, ItemsElementName = new[] { ItemsChoiceType4.FontFamily, ItemsChoiceType4.FontSize, ItemsChoiceType4.Color, } } }, ItemsElementName = new [] { ItemsChoiceType11.Value, ItemsChoiceType11.Style, } } }).ToArray() }, new StyleType { Items = new object[] { "Center" }, ItemsElementName = new [] { ItemsChoiceType4.TextAlign, } } }, ItemsElementName = new[] { ItemsChoiceType12.TextRuns, ItemsChoiceType12.Style } }, new ParagraphType { Items = new object[] { new TextRunsType { TextRun = (new List <TextRunType> { new TextRunType { Items = new object[] { new LocIDStringWithDataTypeAttribute { Value = "DATA GERAÇÃO: " + (DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss")), }, new StyleType { Items = new object[] { "Calibri", "7pt", "#1b75cd" }, ItemsElementName = new[] { ItemsChoiceType4.FontFamily, ItemsChoiceType4.FontSize, ItemsChoiceType4.Color, } } }, ItemsElementName = new [] { ItemsChoiceType11.Value, ItemsChoiceType11.Style, } } }).ToArray() }, new StyleType { Items = new object[] { "Center" }, ItemsElementName = new [] { ItemsChoiceType4.TextAlign, } } }, ItemsElementName = new[] { ItemsChoiceType12.TextRuns, ItemsChoiceType12.Style } } }; var textBoxParagraphs = new ParagraphsType { Paragraph = result.ToArray() }; var textBoxStyle = new StyleType { Items = new object[] { "2pt", "2pt", "2pt", "2pt" }, ItemsElementName = new[] { ItemsChoiceType4.PaddingLeft, ItemsChoiceType4.PaddingRight, ItemsChoiceType4.PaddingTop, ItemsChoiceType4.PaddingBottom, } }; var textBox = new TextboxType { Name = "textBox" + Guid.NewGuid().ToString().Split('-')[0], Items = new object[] { textBoxParagraphs, "0.30854cm", "0.72836cm", "0.9175cm", textBoxStyle }, ItemsElementName = new[] { ItemsChoiceType14.Paragraphs, ItemsChoiceType14.Top, ItemsChoiceType14.Left, ItemsChoiceType14.Height, ItemsChoiceType14.Style } }; return(new ReportItemsType { Items = new object[] { textBox } }); }
private static TextboxType CreateTextBox(string titulo, string top) { var textBoxParagraphs = new ParagraphsType { Paragraph = (new List <ParagraphType> { new ParagraphType { Items = new object[] { new TextRunsType { TextRun = (new List <TextRunType> { new TextRunType { Items = new object[] { new LocIDStringWithDataTypeAttribute { Value = titulo } }, ItemsElementName = new [] { ItemsChoiceType11.Value, } } }).ToArray() }, new StyleType { Items = new object[] { "Left" }, ItemsElementName = new [] { ItemsChoiceType4.TextAlign, } } }, ItemsElementName = new[] { ItemsChoiceType12.TextRuns, ItemsChoiceType12.Style, } } }).ToArray() }; var textBoxStyle = new StyleType { Items = new object[] { "2pt", "2pt", "2pt", "2pt" }, ItemsElementName = new[] { ItemsChoiceType4.PaddingLeft, ItemsChoiceType4.PaddingRight, ItemsChoiceType4.PaddingTop, ItemsChoiceType4.PaddingBottom, } }; return(new TextboxType { Name = "textBox" + Guid.NewGuid().ToString().Split('-')[0], Items = new object[] { true, true, textBoxParagraphs, top, "0.34396cm", "0.6cm", textBoxStyle }, ItemsElementName = new[] { ItemsChoiceType14.CanGrow, ItemsChoiceType14.KeepTogether, ItemsChoiceType14.Paragraphs, ItemsChoiceType14.Top, ItemsChoiceType14.Left, ItemsChoiceType14.Height, ItemsChoiceType14.Style, } }); }