Ejemplo n.º 1
0
        public TablixCell CreateCell(string fieldName, uint? colSpan, uint? rowSpan,bool hidden)
        {
            TextboxType textbox = null;
            if (hidden)
            {
                textbox = CreateTextbox(fieldName, true);
            }
            else
            {
                textbox = CreateTextbox(fieldName);
            }
            var cellContents = new CellContents() { Textbox = textbox };
            if (colSpan != null && colSpan > 1)
            {
                cellContents.ColSpan = colSpan;
            }
            if (rowSpan != null && rowSpan > 1)
            {
                cellContents.RowSpan = rowSpan;
            }

            var cell = new TablixCell
                           {
                               CellContents = cellContents.Create(),
                               IsEmpty = false,
                               HasSetValue = true
                           };

            return cell;
        }
Ejemplo n.º 2
0
        private Rdl.TablixCellType CreateTablixCell(int i, string fieldName)
        {
            TablixCell cell = new TablixCell();
            //cell.CellContents

            CellContents contents = new CellContents();
            contents.Textbox = CreateTableCellTextbox(i, fieldName);
            cell.CellContents = contents.Create();
            return cell.Create();
        }