We want to print a document without showing it to the user and the images are stored outside the document. Why is DoRequestHTTPImage not being called when you create the WPTools instance using CreateDynamic?
FEDPOL #72 - CreateDynamic & DoRequestHTTPImage
-
-
- Offizieller Beitrag
Hi,
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
-
Yes, I can see that, but why are you not also assigning that event handler in case of CreateDynamic?
and
Is it safe to use Create instead of CreateDynamic for non-visual document manipulation?
-
- Offizieller Beitrag
>>Yes, I can see that, but why are you not also assigning that event handler in case of CreateDynamic? <<Because>>Is it safe to use Create instead of CreateDynamic for non-visual document manipulation?<<
For manipulation it does not matter, but if you need to print or reformat you need CreateDynamic.(in C++Builder call new and later _MakeDynamic() )
Julian
-
-
- Offizieller Beitrag
The event is part of RTFDataCollection because of the seperation of data and editor logic. This events are part of the RTFDataCollection and published by TWPRichText only to make it possible to assign by IDE.
It is problematic to always assign them (when using CreateDynamic) because many TWPRichText can be attached ot one RTFDataCollection.