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
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

TRichEdit

Mensaje por Timm »

Hi!
How can I display a RTF file that is located on a CD-ROM (read-only) with
class TRichEdit?
::oRichEdit1:LoadRTF( "File.rtf" ) shows an empty control when I start my
exe from CD-ROM.
It works when it is started from hard drive.
Best regards, Timm.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9252
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TRichEdit

Mensaje por ignacio »

Timm,
As you surely know, is a Windows standard API control and we can do nothing to change its behavior. Maybe if you put the control in read-only mode it will work. You should give it a try. BTW if that fails, try to copy the file to a temporary file and open it afterwards,
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder