DocProperties should not be loaded

General TRichView support forum. Please post your questions here
Post Reply
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

DocProperties should not be loaded

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply