Solved

DBRichEdit and hottext Or URL Links

Posted on 2008-06-11
5
593 Views
Last Modified: 2013-11-23
Hi,

I am having issues with hottext or URLLinks. While typing or entering data in the DBRichEdit box  I could see the URLLink get active, (I have AutoUrlDetect property is true). I can save the text in database successfully. When I retrieve the data the URLLink does not appear to be active link. It is just like plane text. It gets active if I add a space at the beginning or end of the UrlLink text.

Could anybody help me to resolve the issue? Is there any thing else I am missing?

I am using Delphi 2005, Interbase/SQL Server database.

Thanks in advance.
Regards,
ktuser.


FYI: The same functionality used to work in previous version of application which was developed using Delphi 5 and DBRichEdit component.
0
Comment
Question by:ktuser
  • 3
  • 2
5 Comments
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 21766166
hmm... make sure the "PlainText" property is set to false, maybe that's it
0
 

Author Comment

by:ktuser
ID: 21794158
There is no such property.

Any other suggestion please!!
0
 

Author Comment

by:ktuser
ID: 21807080
Resolution is found.
I need to use DBRichEdit.GetRTFText  function to store the text in the database and after assigning text to DBRichEdit again I need to use it to get the format back.
0
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 21809361
> There is no such property.
Yes there is...
DBRichEdit1.PlainText

Controls whether the rich edit control treats the text as plain text or rich text when streaming to or from a file.

property PlainText: Boolean;

Description

To write the rich text in the control to a plain text file, set PlainText to True before streaming the text to a file. To ignore the rich text information encoded in a file, set PlainText to True before streaming the text to the control. To stream in the rich text attributes encoded in a file, or save the encoding of the rich text attributes to a file, set PlainText to False.

If the rich text attributes of a file are encoded in some format other than rich text format (RTF), it is necessary to use a converter on the text, even when PlainText is True.

Note:      Rich edit controls do not directly support streaming. Use the Lines property to stream to or from a file.
0
 

Accepted Solution

by:
ktuser earned 0 total points
ID: 21812416
Thanks a lot for your response Loki. Sorry it was my mistake!,
I forgot to mension in my previous post that yes the RichEdit components have PlainText property.

But in my case PlainText property did not resolve the issue. After assigning the text to the DBRichEdit component I need to call GetRTFText function. Without this call the component is not showing URL as active.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tidtcpserver connection lost handle 2 109
Find and Replace Stream with 0s 8 71
Twebbrowser add css to the header 3 39
How to Get Images From Server using App Tethering 11 42
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question