Hello,
I'm copying with memorystream one richview content to another richview. In this case it should not be loaded the docproperties but it should use the docproperties which I've set in this second Richview Component. I've set RVFOptions.rvfoLoadDocProperties to false.
But this seems not to work.
Any ideas?
Best wishes
Bernhard
DocProperties should not be loaded
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I cannot reproduce copying of DocProperties if rvfoLoadDocProperties is excluded from rv.RVFOptions.
But if you call rv.LoadRVFFromStream, rv.DocProperties will be cleared, because rv.LoadRVFFromStream calls rv.Clear, and rv.Clear clears rv.DocProperties.
So if you need to store them after call of Clear, LoadRVF or LoadRVFFromStream, assign them to some TStringList and them reassign back.
But if you call rv.LoadRVFFromStream, rv.DocProperties will be cleared, because rv.LoadRVFFromStream calls rv.Clear, and rv.Clear clears rv.DocProperties.
So if you need to store them after call of Clear, LoadRVF or LoadRVFFromStream, assign them to some TStringList and them reassign back.