Table Header row, underline not visible ?

  • I know how to create a table by code, the only thing I cannot figure out is how to specify that I want the header row content to be underlined.

    I have tried specifying that the currattr included underline, but this seems to have no effect; any idea,

    in the callback method, I do :

    Code
    if RowNr=1 then // Header Row ------------------------------
    begin
        Document.CurrAttr.AddStyle([afsUnderline]);
        Document.CurrAttr.UnderlineMode := WPUND_Standard;
        Document.CurrAttr.AddStyle([afsBold]);

    but this has no effect.

    Any idea ?

    Didier