[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

DBRichEdit and hottext Or URL Links

Posted on 2008-06-11
5
Medium Priority
?
612 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Suggested Courses

650 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