savetostream()
hi
my code is :
report:=Tsream.create;
actionfrxReport.DesignReport;
actionfrxReport.SaveToStream(report);
and after the designer closes, I got a message
'Abstract error'
why?!
my code is :
report:=Tsream.create;
actionfrxReport.DesignReport;
actionfrxReport.SaveToStream(report);
and after the designer closes, I got a message
'Abstract error'
why?!
Комментарии
Use TMemoryStream
Вместо TStream используйте одного из наследников, например TMemoryStream.
TStream is the abstract base class type for stream objects that can read from or write to various kinds of storage media, such as disk files, dynamic memory, and so on.
....
As an abstract class, TStream cannot be instantiated.
it is working with Tmemorystream