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
i have problem on save to stream
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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)
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)