Esempio n. 1
0
        private Rdl.TextboxType CreateTableCellTextbox(int i,string fieldName)
        {
            var cellStyle = CreateStyle();
            var fontStyle = CreateStyle();

            Border bd = new Border();
            bd.Style = "Solid";
            cellStyle.Border = bd.Create();

            string value = "=Fields!" + fieldName + ".Value";
            if (Parent.TableCellRenderer != null)
            {
                Parent.TableCellRenderer(fieldName, cellStyle, fontStyle,value);
            }

            Textbox box = new Textbox();
            box.Paragraphs = RdlGenerator.CreateParagraphs(value, fontStyle.Create());
            box.Style = cellStyle.Create();
            box.CanGrow = true;
            return box.Create(fieldName);
        }