private RdlSchema.TableCellType CreateHeaderTableCell(string fieldName)
        {
            RdlSchema.TableCellType headerTableCell = new RdlSchema.TableCellType();
            headerTableCell.ReportItems = new RdlSchema.ReportItemsType();

            RdlSchema.TextboxType headerTableCellTextbox = new RdlSchema.TextboxType();
            headerTableCellTextbox.Name = fieldName.RemoveSpecialChars() + "_Header";
            headerTableCellTextbox.Value = fieldName;
            headerTableCellTextbox.Style = HeaderStyle;
            headerTableCellTextbox.Style.FontWeight = "700";
            headerTableCellTextbox.CanGrow = false;
            headerTableCellTextbox.CanShrink = true;
            headerTableCell.ReportItems.Items.Add(headerTableCellTextbox);
            return headerTableCell;
        }
Example #2
0
 public void Insert(int index, TableCellType value)
 {
     tableCellField.Insert(index, value);
 }
Example #3
0
 public int Add(TableCellType value)
 {
     return tableCellField.Add(value);
 }
        private RdlSchema.TableCellType CreateDetailsTableCell(string fieldName)
        {
            RdlSchema.TableCellType tableCell = new RdlSchema.TableCellType();
            tableCell.ReportItems = new RdlSchema.ReportItemsType();

            RdlSchema.TextboxType textbox = new RdlSchema.TextboxType();
            textbox.Name = fieldName.RemoveSpecialChars();
            textbox.Value = "=Fields(\"" + fieldName.RemoveSpecialChars() + "\").Value";            
            textbox.CanGrow = false;
            textbox.Style = RowsStyle;
            textbox.Style.BackgroundColor = "=iif(RowNumber(Nothing) mod 2, \"AliceBlue\", \"White\")";
            textbox.Style.TextAlign = "Left";                        
            
            tableCell.ReportItems.Items.Add(textbox);

            return tableCell;
        }