Page 1 of 1

DocProperties should not be loaded

Posted: Fri Jan 11, 2008 8:02 am
by BernhardRoos
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

Posted: Tue Jan 15, 2008 3:57 pm
by Sergey Tkachenko
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.