I have a RichViiewEdit component on a form. If I use the the LoadRVFFromFile procedure, the controls on the document appear with no problem. However on the same component if I use the AppendRVFFromSteam procedure because I want to load several documents, the controls are not visible. They seem to be present because they will trigger the OnControlAction event and I can cycle through and see the correct count and class names.
Any ideas please ?
AppendRVFFromStream and Controls
-
Sergey Tkachenko
- Site Admin
- Posts: 18104
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: AppendRVFFromStream and Controls
Classes of all controls used in RVF must be registered before the first loading.
Such as:
There must be no difference between LoadRVFFromStream and AppendRVFFromStream. Internally, they call the same method for loading content.
Do not forget to call Format after loading.
Such as:
Code: Select all
RegisterClasses([TButton, TEdit]);Do not forget to call Format after loading.