Hi,
I have a problem with pictures in WPRichText.
I'm adding pictures like that :
Code
if(TOpenPictureDialog1->Execute())
{
doc->SetFocus();
TWPTextObj *txtObj = doc->Memo->RTFData->TextObjects->Insert(WPLoadObjectFromFile(doc->Memo->RTFData,TOpenPictureDialog1->FileName, false), 0, 0, "Pic", "Stream");
txtObj->Wrap = wpwrBoth;
txtObj->PositionMode = wpotPar;
}
But when I merge my document, the picture disappear. Instead, there is a white square with red borders.
I was wondering, is there any special methods to call when you merge a document with pictures in it?
Thanks