N
Nathan Franklin
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
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