Qv.Document.Object.HeaderCell

Example
function init() {

    var tbl = doc.GetObject("CH04");
    
    tbl.SetOnUpdateComplete(function () {

        var 
            html = [],
            headerRows = this.Data.HeaderRows;

        html.push("<table border='1'>");

        for (var r = 0, max = headerRows.length; r < max; r++) {

            var rowData = headerRows[r];

            html.push("&lt;tr&gt;");

            for (var c = 0; c < rowData.length; c++) {

                var cell = rowData[c];
                html.push("&lt;td&gt;" + cell.text + "&lt;/td&gt;");

            }

            html.push("&lt;/tr&gt;");
        }

        var elem = document.getElementById('tb');
        elem.innerHTML = html.join("");
    });
}

Members

style :Integer

Style (reference to entry in the Data.CellStyles collections).
Type:
  • Integer

text :String

The text for the cell.
Type:
  • String