Save document with margins

General TRichView support forum. Please post your questions here
Post Reply
smid
Posts: 7
Joined: Wed May 21, 2008 9:11 am

Save document with margins

Post by smid »

Hi, Sergey.
How can i save document with margins, that are set by TRVRuler?
Thanks.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

In RVF file?
Include rvfoSaveLayout and rvfoLoadLayout in RichViewEdit.RVFOptions.
smid
Posts: 7
Joined: Wed May 21, 2008 9:11 am

Post by smid »

Sorry for inexact question, i mean in RTF format.
I tried to include RVFOptions.rvfoSaveDocPropetries, RVFOptions.rvfoLoadDocPropetries and RTFOptions.rvrtfSaveDocParameters, and changed margins in DocParamters, but it has no effect. I set DocParameters margins equal to RVRuler margins, but document wasn't saved correct. Top and left margins got no changes (as it set in RichView to 1 and 1.25 inches by default), and right and bottom were set to 0.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Did you set the proper value for rve.DocParameters.Units?
smid
Posts: 7
Joined: Wed May 21, 2008 9:11 am

Post by smid »

I tried to set it in different ways:
1. I set DocParameters.Units to rvuPixels, because i used ruPixels for RVRuler.UnitsProgram.
2. I set DocParameters.Units to rvuPixels and then convert to rvuInches using DocParameters.ConvertToUnits.
3. I set both DocParameters.Units and RVRuler.UnitsProgram to rvuInches.

But in all cases result was as i wrote before - top and left margins got no changes, and right and bottom were set to 0.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you use ScaleRichView (or how do you change top and bottom margins?)
smid
Posts: 7
Joined: Wed May 21, 2008 9:11 am

Post by smid »

No, i use TRichView. In fact, i change only top margin using RVRuler for that, but i need to save bottom margin too.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please send me a simple project showing the problem.
smid
Posts: 7
Joined: Wed May 21, 2008 9:11 am

Post by smid »

Sent.

P.S. Sorry for not responding to your message for such a long time.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Still not received. If it has exe-file, please remove it, mail server rejects executables.
smid
Posts: 7
Joined: Wed May 21, 2008 9:11 am

Post by smid »

I sent it to svt at trichview.com, it contains only one rar-archive.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please resend to richview at gmail com.
But exe files are not accepted even in zip or rar.
smid
Posts: 7
Joined: Wed May 21, 2008 9:11 am

Post by smid »

Sent.
Post Reply