Change FP3 from code
Hello,
I have file FP3 with data. Now I need to get this fp3 file, find object and it this object exists change it text property.
I have something like this:
var
memo: TfrxMemoView;
begin
frxRap.PreviewPages.LoadFromFile('f.fp3');
memo := frxRap.PreviewPages.page[0].findobject('objectname') as TfrxMemoView;
if assigned(memo) then
memo.text := 'my string';
frxRap.PreviewPages.Print;
end;
Problem is that I need to print without showing. If i run ShowPreparedRaprt it will show me "my string" in this component but when I print it on printer there is old value.
Can someone help?
I have file FP3 with data. Now I need to get this fp3 file, find object and it this object exists change it text property.
I have something like this:
var
memo: TfrxMemoView;
begin
frxRap.PreviewPages.LoadFromFile('f.fp3');
memo := frxRap.PreviewPages.page[0].findobject('objectname') as TfrxMemoView;
if assigned(memo) then
memo.text := 'my string';
frxRap.PreviewPages.Print;
end;
Problem is that I need to print without showing. If i run ShowPreparedRaprt it will show me "my string" in this component but when I print it on printer there is old value.
Can someone help?