Page 1 of 1
Save document with margins
Posted: Fri May 23, 2008 11:24 am
by smid
Hi, Sergey.
How can i save document with margins, that are set by TRVRuler?
Thanks.
Posted: Fri May 23, 2008 2:35 pm
by Sergey Tkachenko
In RVF file?
Include rvfoSaveLayout and rvfoLoadLayout in RichViewEdit.RVFOptions.
Posted: Fri May 23, 2008 3:42 pm
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.
Posted: Fri May 23, 2008 5:00 pm
by Sergey Tkachenko
Did you set the proper value for rve.DocParameters.Units?
Posted: Mon May 26, 2008 12:28 pm
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.
Posted: Mon May 26, 2008 5:39 pm
by Sergey Tkachenko
Do you use ScaleRichView (or how do you change top and bottom margins?)
Posted: Thu Jun 05, 2008 9:26 am
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.
Posted: Thu Jun 05, 2008 6:11 pm
by Sergey Tkachenko
Please send me a simple project showing the problem.
Posted: Thu Jun 19, 2008 12:14 pm
by smid
Sent.
P.S. Sorry for not responding to your message for such a long time.
Posted: Thu Jun 19, 2008 2:11 pm
by Sergey Tkachenko
Still not received. If it has exe-file, please remove it, mail server rejects executables.
Posted: Thu Jun 19, 2008 3:25 pm
by smid
I sent it to svt at trichview.com, it contains only one rar-archive.
Posted: Thu Jun 19, 2008 3:45 pm
by Sergey Tkachenko
Please resend to richview at gmail com.
But exe files are not accepted even in zip or rar.
Posted: Fri Jun 20, 2008 11:11 am
by smid
Sent.