In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TRichEdit ?

Xailer professional forum in English
Responder
pjmfelix
Mensajes: 61
Registrado: Jue Abr 27, 2006 1:23 pm

TRichEdit ?

Mensaje por pjmfelix »

Hi.
I try to put difrents texts in the RichEdit by the InsertText function, but
don´t work.
All the text stay with the first configuracion.(FontSize, Bold and
Alignment).
The sample:
::oRTF:nFontSize := 16
::oRTF:lBold := .T.
::oRTF:nAlignment := rpCENTER
::oRTF:InsertText("LETTER")
::oRTF:nFontSize := 10
::oRTF:lBold := .F.
::oRTF:nAlignment := rpLEFT
::oRTF:GoToLine(::oRTF:GetLineCount())
::oRTF:InsertText(CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Name " + CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Address " + CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Post Code " + CRLF)
::oRTF:GoToLine(::oRTF:GetLineCount())
::oRTF:SetFocus()
Pedro Gil
Mensajes: 121
Registrado: Lun Ene 15, 2007 7:46 pm

TRichEdit ?

Mensaje por Pedro Gil »

Paulo
Try the following code:
::oRTF:nFontSize := 16
::oRTF:lBold := .T.
::oRTF:nAlignment := rpCENTER
::oRTF:InsertText( "LETTER" + CRLF )
::oRTF:GoToLine(::oRTF:GetLineCount())
::oRTF:nFontSize := 10
::oRTF:lBold := .F.
::oRTF:nAlignment := rpLEFT
::oRTF:InsertText(CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Name " + CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Address " + CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Post Code " + CRLF)
::oRTF:GoToLine(::oRTF:GetLineCount())
::oRTF:SetFocus()
Regards
"Paulo Jorge M. Félix" <pjmfelix@sisbit.pt> escribió en el mensaje
news:[email=45abc057@news.xailer.com...]45abc057@news.xailer.com...[/email]
> Hi.
>
> I try to put difrents texts in the RichEdit by the InsertText function,
> but don´t work.
>
> All the text stay with the first configuracion.(FontSize, Bold and
> Alignment).
>
> The sample:
>
> ::oRTF:nFontSize := 16
> ::oRTF:lBold := .T.
> ::oRTF:nAlignment := rpCENTER
> ::oRTF:InsertText("LETTER")
>
> ::oRTF:nFontSize := 10
> ::oRTF:lBold := .F.
> ::oRTF:nAlignment := rpLEFT
> ::oRTF:GoToLine(::oRTF:GetLineCount())
> ::oRTF:InsertText(CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Name " + CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Address " + CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Post Code " + CRLF)
> ::oRTF:GoToLine(::oRTF:GetLineCount())
> ::oRTF:SetFocus()
>
>
Pedro Gil
Mensajes: 121
Registrado: Lun Ene 15, 2007 7:46 pm

TRichEdit ?

Mensaje por Pedro Gil »

Paulo
Try the following code:
::oRTF:nFontSize := 16
::oRTF:lBold := .T.
::oRTF:nAlignment := rpCENTER
::oRTF:InsertText( "LETTER" + CRLF )
::oRTF:GoToLine(::oRTF:GetLineCount())
::oRTF:nFontSize := 10
::oRTF:lBold := .F.
::oRTF:nAlignment := rpLEFT
::oRTF:InsertText(CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Name " + CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Address " + CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Post Code " + CRLF)
::oRTF:GoToLine(::oRTF:GetLineCount())
::oRTF:SetFocus()
Regards
"Paulo Jorge M. Félix" <pjmfelix@sisbit.pt> escribió en el mensaje
news:[email=45abc057@news.xailer.com...]45abc057@news.xailer.com...[/email]
> Hi.
>
> I try to put difrents texts in the RichEdit by the InsertText function,
> but don´t work.
>
> All the text stay with the first configuracion.(FontSize, Bold and
> Alignment).
>
> The sample:
>
> ::oRTF:nFontSize := 16
> ::oRTF:lBold := .T.
> ::oRTF:nAlignment := rpCENTER
> ::oRTF:InsertText("LETTER")
>
> ::oRTF:nFontSize := 10
> ::oRTF:lBold := .F.
> ::oRTF:nAlignment := rpLEFT
> ::oRTF:GoToLine(::oRTF:GetLineCount())
> ::oRTF:InsertText(CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Name " + CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Address " + CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Post Code " + CRLF)
> ::oRTF:GoToLine(::oRTF:GetLineCount())
> ::oRTF:SetFocus()
>
>
pjmfelix
Mensajes: 61
Registrado: Jue Abr 27, 2006 1:23 pm

TRichEdit ?

Mensaje por pjmfelix »

Thanks !!!
this is it, the simple order of the ::oRTF:GoToLine(::oRTF:GetLineCount())
make the difrence.
"Pedro Gil" <pedrojose.gil@wanadoo.es> escreveu na mensagem
news:[email=45abcc26@news.xailer.com...]45abcc26@news.xailer.com...[/email]
> Paulo
>
> Try the following code:
>
> ::oRTF:nFontSize := 16
> ::oRTF:lBold := .T.
> ::oRTF:nAlignment := rpCENTER
> ::oRTF:InsertText( "LETTER" + CRLF )
>
> ::oRTF:GoToLine(::oRTF:GetLineCount())
> ::oRTF:nFontSize := 10
> ::oRTF:lBold := .F.
> ::oRTF:nAlignment := rpLEFT
> ::oRTF:InsertText(CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Name " + CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Address " + CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Post Code " + CRLF)
> ::oRTF:GoToLine(::oRTF:GetLineCount())
> ::oRTF:SetFocus()
>
> Regards
>
>
> "Paulo Jorge M. Félix" <pjmfelix@sisbit.pt> escribió en el mensaje
> news:[email=45abc057@news.xailer.com...]45abc057@news.xailer.com...[/email]
>> Hi.
>>
>> I try to put difrents texts in the RichEdit by the InsertText function,
>> but don´t work.
>>
>> All the text stay with the first configuracion.(FontSize, Bold and
>> Alignment).
>>
>> The sample:
>>
>> ::oRTF:nFontSize := 16
>> ::oRTF:lBold := .T.
>> ::oRTF:nAlignment := rpCENTER
>> ::oRTF:InsertText("LETTER")
>>
>> ::oRTF:nFontSize := 10
>> ::oRTF:lBold := .F.
>> ::oRTF:nAlignment := rpLEFT
>> ::oRTF:GoToLine(::oRTF:GetLineCount())
>> ::oRTF:InsertText(CRLF + ;
>> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
>> "Name " + CRLF + ;
>> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
>> "Address " + CRLF + ;
>> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
>> "Post Code " + CRLF)
>> ::oRTF:GoToLine(::oRTF:GetLineCount())
>> ::oRTF:SetFocus()
>>
>>
>
>
pjmfelix
Mensajes: 61
Registrado: Jue Abr 27, 2006 1:23 pm

TRichEdit ?

Mensaje por pjmfelix »

Thanks !!!
this is it, the simple order of the ::oRTF:GoToLine(::oRTF:GetLineCount())
make the difrence.
"Pedro Gil" <pedrojose.gil@wanadoo.es> escreveu na mensagem
news:[email=45abcc26@news.xailer.com...]45abcc26@news.xailer.com...[/email]
> Paulo
>
> Try the following code:
>
> ::oRTF:nFontSize := 16
> ::oRTF:lBold := .T.
> ::oRTF:nAlignment := rpCENTER
> ::oRTF:InsertText( "LETTER" + CRLF )
>
> ::oRTF:GoToLine(::oRTF:GetLineCount())
> ::oRTF:nFontSize := 10
> ::oRTF:lBold := .F.
> ::oRTF:nAlignment := rpLEFT
> ::oRTF:InsertText(CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Name " + CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Address " + CRLF + ;
> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
> "Post Code " + CRLF)
> ::oRTF:GoToLine(::oRTF:GetLineCount())
> ::oRTF:SetFocus()
>
> Regards
>
>
> "Paulo Jorge M. Félix" <pjmfelix@sisbit.pt> escribió en el mensaje
> news:[email=45abc057@news.xailer.com...]45abc057@news.xailer.com...[/email]
>> Hi.
>>
>> I try to put difrents texts in the RichEdit by the InsertText function,
>> but don´t work.
>>
>> All the text stay with the first configuracion.(FontSize, Bold and
>> Alignment).
>>
>> The sample:
>>
>> ::oRTF:nFontSize := 16
>> ::oRTF:lBold := .T.
>> ::oRTF:nAlignment := rpCENTER
>> ::oRTF:InsertText("LETTER")
>>
>> ::oRTF:nFontSize := 10
>> ::oRTF:lBold := .F.
>> ::oRTF:nAlignment := rpLEFT
>> ::oRTF:GoToLine(::oRTF:GetLineCount())
>> ::oRTF:InsertText(CRLF + ;
>> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
>> "Name " + CRLF + ;
>> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
>> "Address " + CRLF + ;
>> Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
>> "Post Code " + CRLF)
>> ::oRTF:GoToLine(::oRTF:GetLineCount())
>> ::oRTF:SetFocus()
>>
>>
>
>
Responder