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

  • thanks for sharing
    It was interesting listening to [url=http://www.bestwowgolds.com]wow gold[/url]NPR this morning to hear the difficulties involved in developing a "no-fly" zone over Libya by LTG Deptula and others.
    It would appear that the efforts in Afghanistan have proven taxing and the AF is suffering a poverty of resources for fuelers and multi-role[url=http://www.terausgold.com]tera gold[/url]
    fighters.
    9 years later, we still use F-15Es, B-1s[url=http://www.buydiablo3usgold.com]buy diablo 3 gold[/url], and F16s when a simple single engine prop could do the mission better, safer and cheaper.b

Sign In or Register to comment.

Howdy, Stranger!

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

Categories

In this Discussion