Hi,
We are using TcxRichEdit control in Delphi 2007. We want to show RTF file to the user and let him edit it and then at the end save it back to the hard disk as RTF.
When we use the following line to load the document which is attached with this message, it displays the Text part only not the images.
richEdit.Lines.LoadFromFile('C:\UserAccount.rtf');
We have tested several combinations but its not working.
Is there anyway to achieve what we want?
Thanks in anticipation.
Regards,
Ahmad Jalil Qarshi
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello,
Thank you for your message.
To load this file with images you can convert it in the "Word97-2003 & 6.0/95 - RTF" format and enable the <RichEdit>.Properties.AllowObjects property. Attached is an example that demonstrates this approach in action.
Best Regards,
Paulo
Hi,
Thanks Paulo for your kind reply.
The sample you have provided works great with RTF files generated by MS Word 97-2003. But it doesn't work with the RTF file I've attached in my initial post. Actually I generated that RTF file from a C# application and used the RichEditControl from DExperience package to generate the RTF file.
Is there anyway to display RichEditControl (DExperience 11.1.8) generated RTF file in TcxRichEdit control in delphi?
The other option could be to Extract the MS Word 97-2003 compatible RTF file from the RichEditControl (DExperience 11.1.8) in the C# application. Is it possible?
Thanks,
Ahmad Jalil Qarshi
Hello,
Thank you for your message. I am afraid that TcxRichEdit does not provide such a capability. However, it seems it is possible to implement your second approach. Please refer to the http://documentation.devexpress.com/#WindowsForms/CustomDocument9333 page and take a look at the "DOC (MS Word 97-2003) Format" para. Hopefully, it will help you achieve the required functionality.
Best Regards,
Paulo
Thanks Paulo,
That really helps.
Regards,
Ahmad Jalil Qarshi
I am glad to hear that you have found my assistance helpful.
Best Regards,
Paulo