RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseAdapterPageProducer.ContentFromStream Method

Returns the content produced using a template read from a stream.

Pascal
function ContentFromStream(InStream: TStream): string; override;
C++
virtual __fastcall AnsiString ContentFromStream(TStream InStream);

Call ContentFromStream to retrieve the content produced by the adapter page producer based on the template provided by the Stream parameter. ContentFromStream:

  1. Generates an OnBeforeGetContent event.
  2. Translates the HTML template that is the value of Stream, using information produced by the items listed in the WebPageItems property.
  3. Generates an OnAfterGetContent event.
  4. Returns the HTML produced in step 2.

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!