Hi,
I've seen a new feature : repeating header table on each new page.
I've searching for an code exemple or an option, but i've not found it.
Can u help me.
Hi,
I've seen a new feature : repeating header table on each new page.
I've searching for an code exemple or an option, but i've not found it.
Can u help me.
Hi,
If a table row uses the paprIsHeader flag, the repetion is activated.
Check out demo Tasks\CrTable
Julian
So... I became Sherlock holmes once again...
The only text about a PaprXXXX Flag in the demo CreateTable is there :
include(par.prop, paprInActive); (Line 485)
in a callback procedure : CreateTableCellCallBackHF
you write about table row but Table.CreateRow(nil,True); // send a TWPTableRowStyle... how set a paragraph property ?
I've test on header cell :
// New Header cell
function AjouterCelluleEntete(Lib:string;Largeur:Integer):TParagraph;
begin
{Nouvelle cellule // New Cell}
result:=FRowStyle.InputCell;
result.ASetAdd(WPAT_ParFlags,WPFLG_NOPROOF); //Dictionnaire
if (Largeur>0) then
begin
result.ASet(WPAT_COLWIDTH_PC,Largeur); // Largeur proportionnelle
end
else result.ASet(WPAT_COLWIDTH,-Largeur); // Largeur fixe
{Libellé}
result.SetText(Lib,FAttr);
result.ASetAddCharStyle(WPSTY_BOLD);
result.ASet(WPAT_ParProtected,1);
{Repeat Header}
Include(Result.prop,paprIsHeader);
end;
Alles anzeigen
without success :(
It's so difficult to find something in wptools...
I use TParagraph.CreateTable instead of TWPRichText.TableAdd which is used the demo.
Could i repeat table header with a table created by CreateTable function ?