예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
        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);
        }
예제 #5
0
 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);
 }
예제 #6
0
 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);
 }
예제 #7
0
 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;
 }
예제 #8
0
 private static Rdl.ReportItemsType CreateHeaderTableCellReportItems(string fieldName)
 {
     Rdl.ReportItemsType headerTableCellReportItems = new Rdl.ReportItemsType();
     headerTableCellReportItems.Items = new object[] { TableRdlGenerator.CreateHeaderTableCellTextbox(fieldName) };
     return(headerTableCellReportItems);
 }
예제 #9
0
 private static Rdl.TableCellType CreateTableCell(string fieldName)
 {
     Rdl.TableCellType tableCell = new Rdl.TableCellType();
     tableCell.Items = new object[] { TableRdlGenerator.CreateTableCellReportItems(fieldName) };
     return(tableCell);
 }