I recently acquired a ScaleRichView license and have already begun to replace (in my application) all TRichViewEdit by TSRichviewEdit. I'm happy with the change.
My application to store RichView format documents in a database (MSSQL). When editing documents I allow the display of Header and Footer but these subdocuments are not saved within the document. So my new editor (SRichViewEdit) I run this before saving the contents to the field
Code: Select all
   Self.Editor.SRichViewEdit1.SubDocuments[srvhftFirstPageHeader].Clear ;   Self.Editor.SRichViewEdit1.SubDocuments[srvhftEvenPagesHeader].Clear ;
   Self.Editor.SRichViewEdit1.SubDocuments[srvhftNormalHeader].Clear ;
   Self.Editor.SRichViewEdit1.SubDocuments[srvhftFirstPageFooter].Clear ;
   Self.Editor.SRichViewEdit1.SubDocuments[srvhftEvenPagesFooter].Clear ;
   Self.Editor.SRichViewEdit1.SubDocuments[srvhftNormalFooter].Clear ;Then I measure the length (in bytes) of the text with the following query
Code: Select all
select Datalength(CRTextCart) from DocsTable where......374
Then I edit with the new TS RichView-based editor, then do the BD Post
I get
604
Both controls have this values in RVFOptions
RVFOptions = [rvfoSavePicturesBody, rvfoSaveControlsBody, rvfoSaveBinary, rvfoSaveTextStyles, rvfoSaveParaStyles, rvfoSaveDocProperties, rvfoLoadDocProperties]
Try to find what are the differences in the stored data, I believe I have found that also. You may not be able to see the correct characters but I think it exemplifies
With TRichViewEdit
Code: Select all
-8 1 3
-9 1 0 0 0 0 9
1
-9 2 0 0 2 0 1
Style
2   	StyleNameNormal textFontNameArialSize
  -9 2 0 0 2 0 2
Style
L   	StyleNameParagraph StyleBorder.WidthBorder.InternalWidthTabs   -9 2 0 0 2 0 4
Style
    -9 7 0 0 0 0 7
Units=2
PageHeight=297
PageWidth=210
LeftMargin=15
RightMargin=15
TopMargin=20
BottomMargin=20
0 1 0 0 0 0
HelloCode: Select all
-8 1 3
-9 2 0 0 2 0 10
    -9 2 0 0 2 0 1
2   	StyleNameNormal textFontNameArialSize
  -9 2 0 0 2 0 2
Z   	StyleNameParagraph StyleTabs 
ModifiedPropsrvpiLineSpacingrvpiLineSpacingType   -9 2 0 0 2 0 4
    -9 7 0 0 0 0 7
Units=2
PageHeight=297
PageWidth=210
LeftMargin=15
RightMargin=15
TopMargin=20
BottomMargin=20
-9 2 0 0 2 0 8
[b]headerf
    -9 2 0 0 2 0 8
headerr
    -9 2 0 0 2 0 8
header
    -9 2 0 0 2 0 8
footerf
    -9 2 0 0 2 0 8
footerf
    -9 2 0 0 2 0 8
footer
    -9 2 0 0 2 0 3[/b]
!          9   9   L   L   ¨  ¨   0 1 0 0 0 0
HelloI would like to minimize the space occupied. There is some information that can provide me on ways to reduce the storage space?
Code: Select all
