Example: Create image object and insert in text

Top  Previous  Next

   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, "", "" );