Page 1 of 1

Save PageProperty in Document

Posted: Tue Oct 21, 2008 7:11 pm
by Andy
Is there a chance to save the PageProperty to document ?


Andy

Posted: Wed Oct 22, 2008 3:13 pm
by Sergey Tkachenko
What do you mean? Page size and orientation are saved (in RTF and RVF). But currently, the same values for all pages.

Posted: Wed Oct 22, 2008 4:12 pm
by Andy
I mean follow:

I make the same like in your demo "actionTest"
Set the margins on each side and orientation.
All is fine.
Then I save the document, close application.
Later I start application and load the document, the margins are different and orientation is not ok.

Although I have the options for saving layout active.
I have no idea why.
So I sak for help, how I can restore the last setup of the page.
All pages should be same configured of course !

Thank you in advance Sergey

Andy

Posted: Wed Oct 22, 2008 5:32 pm
by Sergey Tkachenko
I just tried with the latest version of ScaleRichView - changed page properties to A5/landscape and saved as RVF and as RTF.
After restarting and loading, these properties are restored as expected.
Probably the compiled demo used too old version of ScaleRichView and needs to be updated.

Posted: Thu Oct 23, 2008 8:58 am
by Andy
Thanks a lot for your help Sergey,

I found out, what's the problem.
I use the format RVF, but...

But I use a own file-extension.
If I save and load in extension ".RVF" all is fine.

What must I change that my extension has the same behaviour as RVF ?

Posted: Thu Oct 23, 2008 10:44 am
by Sergey Tkachenko
A extension must not affect saving.
How did you change the extension?

Posted: Thu Oct 23, 2008 12:42 pm
by Andy
In RichViewActions I extended the filters :

function MakeExportFilter
function MakeImportFilter
...

List.Add(ord(ffiRVF)); //Andy extended filters
Result := Result + Work Document (*.WorkDoc) |*.WorkDoc|';
...

That's all

Posted: Thu Oct 23, 2008 6:44 pm
by Sergey Tkachenko
It's better to rename RVF format to your format.
Change properties of TRVAControlPanel: RVFLocalizable, RVFFilter, DefaultExt.