Anchor in PageHeader
I wrote this code on "OnBeforePrint"-Event in the page header to create an anchor:
procedure PageHeader2OnBeforePrint(Sender: TfrxComponent); var S: String; begin S := 'Inhalt'; Engine.AddAnchor(S); end;
But in the preview I get an error:
undefined identifier: 'Inhalt'
What is the solution?