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 » Tue Oct 21, 2008 7:11 pm

Is there a chance to save the PageProperty to document ?


Andy

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

Post by Sergey Tkachenko » Wed Oct 22, 2008 3:13 pm

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 » Wed Oct 22, 2008 4:12 pm

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: 14636
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Wed Oct 22, 2008 5:32 pm

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 » Thu Oct 23, 2008 8:58 am

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: 14636
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Thu Oct 23, 2008 10:44 am

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 » Thu Oct 23, 2008 12:42 pm

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: 14636
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Thu Oct 23, 2008 6:44 pm

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

Post Reply