trichview.com

trichview.support




Re: Iterating and retrieving table cells


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/06/2003 12:02:43


Demo is attached.


Drag the trackbar to show lines extracted from table.


(minor changes  in code are needed if you'll use TRichViewEdit instead of

TRichView)




> Hi,

>

> I am trying to find out how to use TRichView to do the following

> task. I would like some hints as I find the component very unusual and

> quite difficult to use.

>

> Task:

> I have a table with RTF formatted text in each cell. I need to iterate

> through all the cells and extract the text from them, preserving RTF

> formatting.

>

> The retrieved text from each cell shall end up in a database SQL table.

> Furthermore, I need to extract each physical text line from the table

> cells. Only physical lines with CR/LF, not wrapped lines.

>

> After trying and trying I am not sure if is possible with TRichView, but

> if I am wrong, please tell me how as soon as possible :-)

>

>

> Thanks in advance,

> Martin Larsen

>



begin 666 demo.zip

M4$L#!!0``@`(``:_A2Y$-AE;`P0```D9```)````56YI=#$N9&9M[5C!;ALW

M$*56L78EV;(3!T4O177LI4:<`CD5!239BM78EJ#=V+>VU.Y((DR1*DG)44X&

M>N_G%+W50'^D?]!3#SVY0ZY6E0,;A8,T+AHMP,7,D'QO9CBSN]BK$HF:[>[1

M+GFR]>?'A$2=YI-"U)1JM+OF[@\.H6_R/Y!\),?YG\C:*4O,,/^S5S@`-AB:

M_&\YOT''ADE12#>L-227RB_&O&Y$D\:PWI3"[#2&5&DP_N;>?K/V\C#ZMG%0

MZX;[42F==7O68W[*1"+/(WAERFXB9?'^*#KMF(Z@L'$45D,J=#4$Q?KI_M#,

M.)1)I<V3A@)JH*T24$'0%JGJEZQOJ5QLBSW01LF97[;6N;+18:^ ZPZHEHB'

MWG<EZ\2<?H,4HRZ+AR<,SCTU=3GQ'MJ4>-OSC'R9RS+R8RZ(:,\YX)'-/=D2

M'<K!&#B2"?A;:CJFJ2,-.6:@_;;+GBX_5%-9XUR>A\ AMK8*6L)82<XCN2\2

MNR <RO,.'4 =$<XT@LF(#G1-0<<E>--B3(Q$Z)GUO[*D=T^:6TMJ:X0PU^:C

MYC:J-B74M,24<I:@EQ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4N1#89

M6P,$```)&0``"0`````````!`" `MH$`````56YI=#$N9&9M4$L!`A0`% `"

M``@`G0&&+JWUWAI>!0``)P\```D``````````0`@`+:!*@0``%5N:70Q+G!A

M<U!+`0(4`!0``@`(`(V[A2[B+M8]AP```+P````,``````````$`( "V@:\)

M``!0<F]J96-T,2YD<')02P$"% `4``(`" !AO84NBZSVSQP#```]"0``"0``

M```````!`" `MH%@"@``=&%B;&4N<G1F4$L%!@`````$``0`WP```*,-````

!````

`

end





Powered by ABC Amber Outlook Express Converter