示例#1
0
        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);
        }
示例#2
0
        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);
        }