Example: Create image object and insert in text

<< Click to Display Table of Contents >>

Navigation:  Programming > Installation > C++Builder Notes >

Example: Create image object and insert in text

   TWPOImage *image = new TWPOImage(0);

   image->LoadFromFile( "logo.bmp" );

 

  //image->PositionMode = wpotPage;

 

   WPRichText1->TextObjects->Insert(image->CreateCopy(0), 0, 0, "", "" );

 

   image->LoadFromFile( "logo1.bmp" );

   WPRichText1->TextObjects->Insert(image, 0, 0, "", "" );