Save PageProperty in Document

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
Andy
Posts: 24
Joined: Wed Oct 15, 2008 6:06 am
Location: Switzerland

Save PageProperty in Document

Post by Andy »

Is there a chance to save the PageProperty to document ?


Andy
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Andy
Posts: 24
Joined: Wed Oct 15, 2008 6:06 am
Location: Switzerland

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

Post 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.
Andy
Posts: 24
Joined: Wed Oct 15, 2008 6:06 am
Location: Switzerland

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

Post by Sergey Tkachenko »

A extension must not affect saving.
How did you change the extension?
Andy
Posts: 24
Joined: Wed Oct 15, 2008 6:06 am
Location: Switzerland

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

Post by Sergey Tkachenko »

It's better to rename RVF format to your format.
Change properties of TRVAControlPanel: RVFLocalizable, RVFFilter, DefaultExt.
Post Reply