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
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

TRichEdit

Mensaje por Maarten Roos »

What is the best way to give an user a pre-created document when he enters the richedit module? So when he enters there is already a document on the screen. This document is a non-existing document.
I played with the cText property, but that didn't work? I like to pre-insert a logo, play with different font sizes etc etc
Is that possible?
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TRichEdit

Mensaje por ignacio »

Maarten,
Is an empty new document. To load a document use the method LoadRTF.
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Maarten Roos" <m[dot]roos[at]ecem[dot]com> escribió en el mensaje de
noticias:4c7fc182$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> What is the best way to give an user a pre-created document
> when he enters the richedit module? So when he enters there
> is already a document on the screen. This document is a
> non-existing document.
>
> I played with the cText property, but that didn't work? I
> like to pre-insert a logo, play with different font sizes
> etc etc
>
> Is that possible?
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

TRichEdit

Mensaje por Maarten Roos »

Ok.... but how do I create a new 'empty' document with logo, text and values from regarding database I want to use?
For example: when an user put's in a contract and he wants to send to costumer, I want the program to create the contract within the Trichedit.
Maarten Roos
Mensajes: 126
Registrado: Lun Mar 29, 2010 10:24 am

TRichEdit

Mensaje por Maarten Roos »

Forget it... I must stop thinking in the Clipper way.
I am going to make rtf templates, load it, and search and replace what I want.
Thx
Pedro Gil
Mensajes: 121
Registrado: Lun Ene 15, 2007 7:46 pm

TRichEdit

Mensaje por Pedro Gil »

Hi Maarten,
I suggest to you to check the example found at ..samplesrichpad.
Regards
"Maarten Roos" <m[dot]roos[at]ecem[dot]com> escribió en el mensaje de
noticias:4c7fc182$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> What is the best way to give an user a pre-created document
> when he enters the richedit module? So when he enters there
> is already a document on the screen. This document is a
> non-existing document.
>
> I played with the cText property, but that didn't work? I
> like to pre-insert a logo, play with different font sizes
> etc etc
>
> Is that possible?
>
>
Responder