FirstPageHeader and NormalHeaders
Posted: Thu Aug 23, 2018 12:33 pm
Hi Community,
I'm using SRichviewEdit-component and tried to add content like text or pictures in the header at the first page and different content in header of other pages at runtime by doing this:
...
SRichView.PageProperty.HeaderVisible:=true;
SRichView.PageProperty.TitlePage:=true;
....
SRichView.CurrentPage:=1;
SRichView.StartEditing(srvrveHeader);
SRichView.RVHeader.Clear;
...insert elements ...
SRichView.RVHeader.Format;
It works fine.
Then I insert other content in the normal editor. The document contains at least two pages, sometimes more.
If I do this (for example in onclick of a button, the document has 2 or more pages):
SRichView.CurrentPage:=2;
SRichView.StartEditing(srvrveHeader);
SRichView.RVHeader.Clear;
...insert elements ...
SRichView.RVHeader.Format;
I dont get what I expect. After calling StartEditing currentpage returns automaticly to the value 1. The activeeditor is then the header of the first page.
Does anybody of you know this problem an how can I fix it?
Thank your for reading this
Bernd Graupe
dasSYSTeam GbR
I'm using SRichviewEdit-component and tried to add content like text or pictures in the header at the first page and different content in header of other pages at runtime by doing this:
...
SRichView.PageProperty.HeaderVisible:=true;
SRichView.PageProperty.TitlePage:=true;
....
SRichView.CurrentPage:=1;
SRichView.StartEditing(srvrveHeader);
SRichView.RVHeader.Clear;
...insert elements ...
SRichView.RVHeader.Format;
It works fine.
Then I insert other content in the normal editor. The document contains at least two pages, sometimes more.
If I do this (for example in onclick of a button, the document has 2 or more pages):
SRichView.CurrentPage:=2;
SRichView.StartEditing(srvrveHeader);
SRichView.RVHeader.Clear;
...insert elements ...
SRichView.RVHeader.Format;
I dont get what I expect. After calling StartEditing currentpage returns automaticly to the value 1. The activeeditor is then the header of the first page.
Does anybody of you know this problem an how can I fix it?
Thank your for reading this
Bernd Graupe
dasSYSTeam GbR