trichview.com

trichview.support




Re: Paragraph spacing


Return to index


Author

Message

Justin Turberville

Posted: 03/20/2002 20:13:33


Rather use this example


"Sergey Tkachenko" <[email protected]> wrote in message

news:[email protected]...

> 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.

> >

> >

>

>



begin 666 Crunch.zip

M4$L#!!0````(`/B4="S;)#RDB ```+X````,````4')O:F5C=#$N9'!R*RC*

M3R]*S%4(*,K/2DTN,;3FY>+E*BU.+>;E4E!PRR_*+=8!L4+S,DL,%3+S%-3!

M++V"Q&)UA6J0O&$M6$NU2I""EEY1:G$MB)>4FIZ9!]+G6%"0DYF<6)*9GZ?G

M"=29F9B3695JC2[E7)2:6)(*,DXC!&RH#MAN0TT,E4&E>4"QU+P4/9 ]`%!+

M`P04````" #$2W0LNCW1B0$+``#)(@``" ```$AO;64N<G1FW5E;<]NX%7[W

MC/\#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0`% ````@`

M1YET+- -TI D! ``]PT```D``````````0`@`+:!V0L``%5N:70Q+F1F;5!+

M`0(4`!0````(`,66="S_B\.J" (``+ &```)``````````$`( "V@200``!5

>;FET,2YP87-02P4&``````0`! #>````4Q(`````

`

end





Powered by ABC Amber Outlook Express Converter