binary RTF variables

  • >Could you give us a little sample about "binary RTFVariables function" ?

    A pretty simple example:

    Save the image to the stream:

    Code
    WPRichText1.RTFVariables.AddStream('demoimage').Clear;Image1.Picture.Bitmap.SaveToStream(       WPRichText1.RTFVariables.AddStream('demoimage') );


    Load the image from the stream:

    Code
    WPRichText1.RTFVariables.AddStream('demoimage').Position := 0;
    Image4.Picture.Bitmap.LoadFromStream(
    WPRichText1.RTFVariables.AddStream('demoimage'));