trichview.support
Re: Paragraph spacing |
Author |
Message |
Sergey Tkachenko |
Posted: 03/20/2002 16:51:46 SpaceBefore and SpaceAfter work OK for me. Please note: when you paste RTF/RVF to RichView, the first pasted paragraph will have attributes of paragraph BEFORE insertion, not of paragraph from RTF. Even if you paste into an empty line. Other pasted paragraph will have attributes from source RTF/RVF. That fix in AddStringFF affects only loading plain text from file, and does not affect RTF. About saving in blob field: make sure that paragraph attributes are stored together with document in blob field (right click DBRichViewEdit at design time, choose "Settings" from the context menu, select "Allow adding styles dynamically", click OK) If all above will not help you, please send me this problematic RTF doc and step-by-step instructions how to reproduce problem. > RV does not seem to conserve spaces before and after paragraphs. > Setting TParaInfo's SpaceBefore/SpaceAfter does'nt seem to have any effect. > > After pasting in an RTF doc, the paragraph spacing is shown, and after > applying your > > CRVData.pas, find function AddStringFF and add as a second statement > > (after "if ProcessPageBreaks then begin"): > > if s='' then > > AddString(s, ConvertToUnicode, AsSingleParagraph, FirstTime, > PageBreak); > fix, pasting the text into Word conserves the spacing when before it did'nt. > > However, the spacing still seems to get lost in stream load/save as saving > the contents to > a blob field then reloading results in the paragraphs being shown as > crunched together. > > |
Powered by ABC Amber Outlook Express Converter