Working with Rich Edit
Posted: Thu Mar 09, 2006 12:23 pm
Antonio,
I am succesfull with using this class , printing multiple rtf- files
Now , i have a routine to convert txt-files with esc-sequences to rtf format , it works very fine except :
I have to use oRtf:find(......) . When nothing is found (i have to loop trought the text till no escape sequenses are found) , i got a message. This can not be the intention.
I expect a construction as :
DO WHIL oRtf:Find( Esc-sequens ON , .T. ) // Bold on
nFrom := oRtf:GetPos()
oRtf:ReplaceSel( .F. , "" )
oRtf:Find( Esc-sequens OFF , .T. ) // Bold Off
nTo := oRtf:GetPos()
oRtf:ReplaceSel( .F. , "" )
oRTF:SetSel(nFrom , nTo , .T.)
oRtf:SetBold( .T. )
END
Important is that method find returns .T. or .F. !!!!!!!!!
I am succesfull with using this class , printing multiple rtf- files
Now , i have a routine to convert txt-files with esc-sequences to rtf format , it works very fine except :
I have to use oRtf:find(......) . When nothing is found (i have to loop trought the text till no escape sequenses are found) , i got a message. This can not be the intention.
I expect a construction as :
DO WHIL oRtf:Find( Esc-sequens ON , .T. ) // Bold on
nFrom := oRtf:GetPos()
oRtf:ReplaceSel( .F. , "" )
oRtf:Find( Esc-sequens OFF , .T. ) // Bold Off
nTo := oRtf:GetPos()
oRtf:ReplaceSel( .F. , "" )
oRTF:SetSel(nFrom , nTo , .T.)
oRtf:SetBold( .T. )
END
Important is that method find returns .T. or .F. !!!!!!!!!