Page 1 of 1
i have problem on save to stream
Posted: Wed Oct 05, 2011 6:34 am
by gbg
hi i have version 13.0.1
when i use : ActiveEditor.RichViewEdit.SaveRVFToStream(memSt,False);
don`t save page size (a4,a5,...) in stream if i change page size before load and load data from memory stream the page size is not Correct size
Posted: Wed Oct 05, 2011 11:33 am
by gbg
sorry
savestream work correctly
but in Demo RichViewActions with Ribbon when i change page size to a5 and save to stream and change page size to a4 then load from stream page size don`t change to a5
i change source code and problem solved.
Posted: Wed Oct 05, 2011 1:00 pm
by Sergey Tkachenko
Page size is saved/loaded to RVF if you include rvfoSaveDocProperties and rvfoLoadDocProperties in RichViewEdit.RVFOptions.
However, they are not applied automatically to TRVPrint.
If you want to store a page size with document, then:
- in rvActionNew.OnNew and rvaActionOpen.OnOpenFile, call RVPrint.AssignDocParameters(RichViewEdit.DocParameters)
- in rvActionPageSetup.OnChange, assign properties of RVPrint to RichViewEdit.DocParameters.
(all this work would be made automatically is you use ScaleRichView instead of TRichViewEdit)