private Rdl.TableColumnsType CreateTableColumns() { Rdl.TableColumnsType tableColumns = new Rdl.TableColumnsType(); tableColumns.TableColumn = new Rdl.TableColumnType[m_fields.Count]; for (int i = 0; i < m_fields.Count; i++) { tableColumns.TableColumn[i] = TableRdlGenerator.CreateTableColumn(m_width[i]); } return(tableColumns); }
private Rdl.TableCellsType CreateHeaderTableCells() { Rdl.TableCellsType headerTableCells = new Rdl.TableCellsType(); headerTableCells.TableCell = new Rdl.TableCellType[m_fields.Count]; for (int i = 0; i < m_captions.Count; i++) { headerTableCells.TableCell[i] = TableRdlGenerator.CreateHeaderTableCell(m_captions[i]); } return(headerTableCells); }
private Rdl.TableCellsType CreateTableCells() { Rdl.TableCellsType tableCells = new Rdl.TableCellsType(); tableCells.TableCell = new Rdl.TableCellType[m_fields.Count]; for (int i = 0; i < m_fields.Count; i++) { tableCells.TableCell[i] = TableRdlGenerator.CreateTableCell(m_fields[i]); } return(tableCells); }
private Rdl.ReportItemsType CreateReportItems() { Rdl.ReportItemsType reportItems = new Rdl.ReportItemsType(); TableRdlGenerator tableGen = new TableRdlGenerator(); tableGen.Fields = m_selectedFields; tableGen.Captions = m_captionFields; tableGen.Width = m_widthFields; reportItems.Items = new object[] { tableGen.CreateTable() }; return(reportItems); }
private static Rdl.TextboxType CreateTableCellTextbox(string fieldName) { Rdl.TextboxType textbox = new Rdl.TextboxType(); textbox.Name = fieldName; textbox.Items = new object[] { "=Fields!" + fieldName + ".Value", TableRdlGenerator.CreateTableCellTextboxStyle(), true, }; textbox.ItemsElementName = new Rdl.ItemsChoiceType14[] { Rdl.ItemsChoiceType14.Value, Rdl.ItemsChoiceType14.Style, Rdl.ItemsChoiceType14.CanGrow, }; return(textbox); }
private static Rdl.TextboxType CreateHeaderTableCellTextbox(string fieldName) { Rdl.TextboxType headerTableCellTextbox = new Rdl.TextboxType(); headerTableCellTextbox.Name = fieldName.Replace(' ', '_').Replace('(', '_').Replace(')', '_') + "_Header"; headerTableCellTextbox.Items = new object[] { fieldName, TableRdlGenerator.CreateHeaderTableCellTextboxStyle(), true, "0.3in", }; headerTableCellTextbox.ItemsElementName = new Rdl.ItemsChoiceType14[] { Rdl.ItemsChoiceType14.Value, Rdl.ItemsChoiceType14.Style, Rdl.ItemsChoiceType14.CanGrow, Rdl.ItemsChoiceType14.Width, }; return(headerTableCellTextbox); }
private Rdl.ReportItemsType CreateReportItems() { Rdl.ReportItemsType reportItems = new Rdl.ReportItemsType(); TableRdlGenerator tableGen = new TableRdlGenerator(); tableGen.Fields = m_selectedFields; tableGen.Captions = m_captionFields; tableGen.Width = m_widthFields; reportItems.Items = new object[] { tableGen.CreateTable() }; return reportItems; }
private static Rdl.ReportItemsType CreateHeaderTableCellReportItems(string fieldName) { Rdl.ReportItemsType headerTableCellReportItems = new Rdl.ReportItemsType(); headerTableCellReportItems.Items = new object[] { TableRdlGenerator.CreateHeaderTableCellTextbox(fieldName) }; return(headerTableCellReportItems); }
private static Rdl.TableCellType CreateTableCell(string fieldName) { Rdl.TableCellType tableCell = new Rdl.TableCellType(); tableCell.Items = new object[] { TableRdlGenerator.CreateTableCellReportItems(fieldName) }; return(tableCell); }