#1 Re: PDF Engine » How to draw a line below table header » 2012-11-30 11:25:18

Thanks for your answers.

Unfortunatelly i can't do what i want. I'm trying with latest (today's) version of mormot.

1) Multiline cells

    AddColumnHeaders(['Column'#13#10'number'#13#10'one','Column'#13#10'number'#13#10'two','Last column'],false,false);
    DrawTextAcrossCols(['One line','Two'#13#10'lines', 'almost empty']);

Code above gives me strange results:
20hspqh.jpg
i'm expecting something different.

2) Header underline.
I thought that use of multiple headers will workaround multiline cells.

    AddColumnHeaders(['Column','Column',''],false,false);
    AddColumnHeaders(['number','number',''],false,false);
    AddColumnHeaders(['one','two','Last column'],false,false);

Sure it is... but sad
I'm trying to underline entire header... Changing to

// last header row
AddColumnHeaders(['one','two','Last column'],true,false);

This code gives me every header's row underlined.
More... It underlines every data row too sad
1zvs52.png

It seems (and sure it is) that WithBottomGrayLine  is global for whole table. Not good.
Maybe there is a possibility to add something as AddGrayUnderline.

    AddColumnHeaders(['Column','Column',''],false,false);
    AddColumnHeaders(['number','number',''],false,false);
    AddColumnHeaders(['one','two','Last column'],false,false);
    AddGrayUnderline();

?

#2 PDF Engine » How to draw a line below table header » 2012-11-29 14:24:20

Neevor
Replies: 3

Hello, I'm new on this forum and new in PDF Engine at all wink

I'm trying to use SQLite3Pages for report generating in runtime.
And...
How to underline whole table header and not rows? And maybe whole table (last row) too?
How to draw multiline header?
How to draw multiline text in single cell?
Can i bold one letter in one word in one cell? wink

That is enough for start.
Thanks in advance for any help.

Board footer

Powered by FluxBB