Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2007

Tip: Looking for answers? Try searching our database.

RichTextBox RTF Hyperlinks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nathan Franklin - 09 Jun 2007 06:03 GMT
Hello,

I am using a RichInk Implementation for the compact framework and I am
copying the PWI data over to the desktop and converting it to RTF format by
streaming the data out using the RICHINK.dll library. The RTF data I
retrieve out of the PWI data is the following:

{\rtf1\ansi \deff0{\fonttbl{\f0\fnil\fcharset0\fprq0
Tahoma;}{\f1\froman\fcharset2\fprq2 Symbol;}{\f2\fswiss\fcharset204\fprq2
;}}{\colortbl;\red0\green0\blue0;\red128\green128\blue128;\red192\green192\blue192;\red255\green255\blue255;\red255\green0\blue0;\red0\green255\blue0;\red0\green0\blue255;\red0\green255\blue255;\red255\green0\blue255;\red255\green255\blue0;\red128\green0\blue0;\red0\green128\blue0;\red0\green0\blue128;\red0\green128\blue128;\red128\green0\blue128;\red128\green128\blue0;}

\f0 \fs20 \f0 {\field{\*\fldinst {HYPERLINK http://a0.1.Good 
condition}}{\fldrslt { \ul \cf7 a0.1.Good condition}}}{\field{\*\fldinst
{HYPERLINK http://,}}{\fldrslt { \ul \cf7 ,}}}\fs18 \f0
\'20\'4d\'61\'69\'6e\'74\'65\'6e\'61\'6e\'63\'65\'20\'72\'65\'71\'75\'69\'72\'65\'64\'20
\par }

This is fine, but my problem comes in with Hyperlinks, when i set the RTF
property of the RichTextBox control, my hyperlinks show up blue and are
underlined, but they arnt actually a link. How can I fix this problem, I
thought the RTF above (\field item in particular) would be enough to convert
it to a link. (Is this the proper way to insert a link with RTF:
{\field{\*\fldinst {HYPERLINK http://a0.1.Good condition}}{\fldrslt { \ul
\cf7 a0.1.Good condition}}} , this is how it is exported from the RichInk
DLL file.)

Also how can i export this RTF data after I have finished with it in the
RichTextBox and then set it to the RichTextBox again and keep link
information.

I can't use AutoDetectURL's property because as you can see in the rtf above
I am inserting links like "a0.1.Good COndition" and another link in the
above example is ",".

Also is ther a way that I can select the link text when it has been clicked.

Would I need to use CFM_LINK or CFE_LINK and if so, can you give me some
examples please.

Thanks.

Kind Regards

Nathan
Ross Culver - 13 Jun 2007 02:46 GMT
Nathan, I tried to send you the following directly, but it failed:

Nathan,

This is not related to your post in the subject line, but rather to a post
you did back in May.

You posted a question that started like this:

"No such interface supported - Nathan Franklin

21-May-07 02:31:07

Hello LIST,

PLEASE, PLEASE HELP!! I am trying to fix my visual studio installation, I
dont know what has happened, but I have lost SO MUCH TIME TRYING TO FIX THIS
PROBLEM WITHOUT ANY SUCCESS. And especially when you are self employed every
minute can count, . . . "

I'm getting the same error when after stopping and restarting the Full-Text
Engine and then trying to create a new full-text catalog.

Did you get an answer to your problem?

Ross

ross@clanzilla.org

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.