Engine.AddAnchor()
Hello.
I want to do the following:
procedure txtOPsAdmOnBeforePrint (Sender: TfrxComponent);
var
field, name, anchor: string;
begin
//Engine.AddAnchor(<SeccAdministrativaPaginado."Identifier">.);
Field: = TfrxMemoView (Sender) .DataField;
Name: = TfrxMemoView (Sender) .DataSet.UserName;
Anchor: = <name + '."' + field + '"'>;
// ShowMessage ('Anchor' + anchor);
Engine.AddAnchor (anchor);
end;
I get the following error:
The following error(s) have ocurred:
could not convert variant of type (null) into type (olestr)
Unknown variable or datafield name + '."' + field + '"'
I want to do the following:
procedure txtOPsAdmOnBeforePrint (Sender: TfrxComponent);
var
field, name, anchor: string;
begin
//Engine.AddAnchor(<SeccAdministrativaPaginado."Identifier">.);
Field: = TfrxMemoView (Sender) .DataField;
Name: = TfrxMemoView (Sender) .DataSet.UserName;
Anchor: = <name + '."' + field + '"'>;
// ShowMessage ('Anchor' + anchor);
Engine.AddAnchor (anchor);
end;
I get the following error:
The following error(s) have ocurred:
could not convert variant of type (null) into type (olestr)
Unknown variable or datafield name + '."' + field + '"'
Comments