RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterPageProducer.GetTemplateStream Method

Returns a stream from which to read the HTML template that this producer uses.

Pascal
function GetTemplateStream(out AOwned: Boolean): TStream; override;
C++
virtual __fastcall TStream GetTemplateStream(Boolean AOwned);

TBasePageProducer introduces the protected GetTemplateStream method to obtain a stream from which to read the producer component's HTML template. Each page producer component overrides GetTemplateStream to supply this stream in a class-specific way.  

AOwned returns a value that indicates whether the caller should free the returned stream after reading the template. When AOwned is true, the caller should free the stream object. 

TCustomAdapterPageProducer returns a stream from which the template specified by the HTMLFile or HTMLDoc property can be read. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!