Page 1 of 1

Help - Page Size From A4 to A5 changing.

Posted: Sun Apr 08, 2012 11:27 pm
by alexandreq
Hello Sergey,

When I change the Page Size with srvActionPageFormatA4 to srvActionPageFormatA5, I noticed that the configuration is not saved with my page.

I use DBSRichViewEdit with table.

For Example: If I change the A4 to A5 and when I close the form and open it once again, the same old configuration is loaded.

But when I run srvActionPageSetup1 and change the A4 to A5 for example, I notice that the browse state is changed to dsEdit and it is keep the changed.

Wouldn't it keep the change in my page?

Thanks
Alexandre

Posted: Mon Apr 09, 2012 5:47 pm
by Sergey Tkachenko
In the current version of ScaleRichView, assigning PageProperty is not an editing operation, so the dataset is not informed about the change.
Use the code from http://www.trichview.com/help/idh_examp ... edit1.html , change DBRichViewEdit1 to DBSRichViewEdit1.RichViewEdit.

Posted: Mon Apr 09, 2012 5:59 pm
by alexandreq
Hello Sergey,

With your example, you mean:

if DBSRichViewEdit1.CanChange then begin
srvActionPageFormatA4.execute();
DBSRichViewEdit1.Change;
DBSRichViewEdit1.Format;
end if

is it?

Posted: Mon Apr 09, 2012 6:26 pm
by Sergey Tkachenko
DBSRichViewEdit1.RichViewEdit.CanChange, and so on.
And only if you assign properties of DBSRichViewEdit1 yourself.
The page setup action must do this work itself, I'll test and fix if necessary.

Posted: Tue Apr 10, 2012 11:22 am
by alexandreq
thanks very much