module Birt::ApiHelper def parse_table_header(table_header) header = [] table_header.rows.each_with_index { |row, index| header << [] row.row_cells.each { |row_cell| header[index] << row_cell.cell_labels[0].text_properties[0].text } } header end end