Hi,
I use the OnMeasureTextPage event to set a different left margin for page 1 :
if PageInfo.pagenr=1 then begin
PageInfo.MarginLeft := 3300;
PageInfo.Changed := True;
end else begin
PageInfo.MarginLeft := 1140;
PageInfo.Changed := True;
end;
Everything works fine for page 1 (see 1) :
[Blockierte Grafik: http://www.kainfo.ch/en_tete.jpg]
If I type some text at the bottom of page 1, and go on, it appears correctly on top of page 2 (see 2).
But, as soon as I type a carriage return, the width of the text is reduced (thought the right margin seems to be set OK) (see 3).
The text on page 2 takes the same total width than on page 1
Changing the margins manually on the ruler does not correct the problem...
NB : The text in the example above was typed in an edit field. But the behaviour is the same for text typed outside edit fields.
Any ideas ?
Thanks,
Attila[/img]