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.
Problem with unitsprogram property
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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
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
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
We cannot reproduce the problem. Please send RVF file to svt@trichview.com
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Not recevied. Please resend to richview@gmail.com
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: