WPCubed Product Support

RequestHTTPImage with ppWPTools for ReportBuilder

Julian,
In trying to get RequestHTTPImage event to fire for a TppWPTRichText (ReportBuilder), I came across this post:
[](http://wpcubed.com/forum/viewtopic.php?t=2905&highlight=createdynamic)
and read that it had to do with CreateDynamic. I didn't understand this bit:

this event is actually triggered by the RTFDataCollection. You need to assign your handler there (w.RTFData) and not to the TWPRichText when you use a dynamically created editor control.

Julian

-so let me know the "proper" way to do this, but this is what I tried in my ppWPTools unit:

//Result := TWPCustomRichTextForPP.CreateDynamic;
  Result := TWPCustomRichTextForPP.Create(nil);//2010-01-28 Dan 
  //Result._MakeDynamic;//2010-01-28 Dan 
  Result.InsertPointAttr.Hidden := TRUE;

It did succeed in causing the RequestHTTPImage to fire, and I followed it in the debugger as it successfully loaded the jpeg image into the TextObject, however the image still just appears as a red box.

Can you give me some guidance to help me get the image to appear?

Thanks.
D7
WPTools 5_39
WPTools RBSupport August 8, 2007

#1 ♥ 0
2.8k Views 1 links 2 users read 2 min
support

Hi,

I see, You use the old style ppWPTools, the new does not have the TWPCustomRichTextForPP anymore.

If the image loads into the object and is not visible later, I would set the property TWPObject.StreamName to '' to make sure it is embedded the next time it is saved.

Julian

#2 ♥ 0
This category is archived. No new posts are possible.