fastreport and stream - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

fastreport and stream

Hi.

I'va this code:

[code]
procedure TfmArtistas.Button1Click(Sender: TObject);
var
stream : TStream;
begin
stream := TStream.create;
mtRelatorios.Locate('idrelatorios',1,[]); // idreport - number of report
mtRelatoriosrelatorio.SaveToStream(stream); // mediumtext field with report
stream.Position := 0;
frRelatorio.LoadFromStream( stream ); // load report
frRelatorio.PrepareReport();
frRelatorio.ShowPreparedReport;
stream.free;
end;
[/code]

I get an abstract error.

Where is my error? what is wrong?

Thank's in advance

Marco Branco

Comments

Sign In or Register to comment.