Page 1 of 1
Problem with unitsprogram property
Posted: Fri Oct 24, 2008 11:15 am
by prosoft
I create document with millimeter units. I set up page border left=25 mm,(right,top,bottom)=15 mm. I write text and i insert image. Now i do save it to my database by SaveToStream method. Now i loaded it. All is OK.
Now i select all (Ctrl-A) and copy to clipboard and paste to end of document. All is shown right.
Next step is save to stream. When i loaded this document again document units are changed to inches and border (top,bottom)=1, (left,right)=1.25.
I don't know why.
Can you help me?
Thanks Josef.
Posted: Sun Nov 02, 2008 11:26 am
by Sergey Tkachenko
Please post the code how you save and how you load documents.
Posted: Tue Nov 04, 2008 1:08 pm
by prosoft
Load:
FRvfEditor:=TfrRVFEdit.Create(self); //This is TFrame child that contains RV components
FRvfEditor.Align:=alClient;
FRvfEditor.Parent:=self; // self is TPanel
// FrvfEditor.SRichViewEdit1.UnitsProgram is rvuMilimeters
FrvfEditor.SRichViewEdit1.LoadRVFFromStream(AMemStr);
// FrvfEditor.SRichViewEdit1.UnitsProgram is rvuInches
Save:
// FrvfEditor.SRichViewEdit1.UnitsProgram is rvuMilimeters
FrvfEditor.SRichViewEdit1.RichViewEdit.SaveRVFToStream(AmemStr,false);
// FrvfEditor.SRichViewEdit1.UnitsProgram is rvuMilimeters
Posted: Mon Nov 10, 2008 4:15 pm
by Sergey Tkachenko
We cannot reproduce the problem. Please send RVF file to
svt@trichview.com
Posted: Tue Nov 11, 2008 9:30 am
by prosoft
I sent email with rvf files.
Zvo.
Posted: Tue Nov 11, 2008 1:46 pm
by Sergey Tkachenko
Not recevied. Please resend to
richview@gmail.com
Posted: Tue Nov 18, 2008 8:06 am
by prosoft
I resent it.
Zvo.
Posted: Thu Nov 20, 2008 4:51 pm
by Sergey Tkachenko
This is a trichview bug. When pasting RVF, DocParameters were reset. It will be fixed (DocParameters must not be changed on inserting or pasting).