Problem with RTF external file link
Posted: Thu Jul 05, 2007 7:32 am
this is my rtf file content:
{\rtf1\ansi\ansicpg1252\deflang1033\ftnbj\uc1\deff0
{\fonttbl{\f0 \froman \fcharset0 Times New Roman;}{\f1 \froman \fcharset134 Times New Roman;}}
{\colortbl ;\red255\green255\blue255 ;\red0\green0\blue0 ;}
{\stylesheet{\fs20\cf0\cb1\ulc0 Normal;}{\cs1\cf0\cb1\ulc0 Default Paragraph Font;}}
{\*\revtbl{Unknown;}}
\paperw12240\paperh15840\margl1800\margr1800\margt1440\margb1440\headery720\footery720\deftab720\formshade\aendnotes\aftnnrlc\pgbrdrhead\pgbrdrfoot
\sectd\pgwsxn12240\pghsxn15840\marglsxn1800\margrsxn1800\margtsxn1440\margbsxn1440\headery720\footery720\sbkpage\pgncont\pgndec
\plain\plain\f1\fs20\ql\loch new\par\f0\cf2{\sslinkpictw1920\sslinkpicth1560{\field{\fldinst INCLUDEPICTURE C:\\\\DOCUME~1\\\\CHIACH~1\\\\LOCALS~1\\\\Temp\\\\MyFiles\\\\Import\\\\CSD1\\\\9BE9BD1CC1B447A79A61F6E98CDB637A.jpg \\d}{\fldrslt}}}\plain\f1\fs20\par\par}
when call InsertRTFFromFileEd, i found the link C:\\\\DOCUME~1\\\\CHIACH~1\\\\LOCALS~1\\\\Temp\\\\MyFiles\\\\Import\\\\CSD1\\\\9BE9BD1CC1B447A79A61F6E98CDB637A.jpg is parsed and finally return only a C: to the OnImportPicture event. I found the problem come after the call to GetFieldCommandValue. I am currently using the latest version of rv.
{\rtf1\ansi\ansicpg1252\deflang1033\ftnbj\uc1\deff0
{\fonttbl{\f0 \froman \fcharset0 Times New Roman;}{\f1 \froman \fcharset134 Times New Roman;}}
{\colortbl ;\red255\green255\blue255 ;\red0\green0\blue0 ;}
{\stylesheet{\fs20\cf0\cb1\ulc0 Normal;}{\cs1\cf0\cb1\ulc0 Default Paragraph Font;}}
{\*\revtbl{Unknown;}}
\paperw12240\paperh15840\margl1800\margr1800\margt1440\margb1440\headery720\footery720\deftab720\formshade\aendnotes\aftnnrlc\pgbrdrhead\pgbrdrfoot
\sectd\pgwsxn12240\pghsxn15840\marglsxn1800\margrsxn1800\margtsxn1440\margbsxn1440\headery720\footery720\sbkpage\pgncont\pgndec
\plain\plain\f1\fs20\ql\loch new\par\f0\cf2{\sslinkpictw1920\sslinkpicth1560{\field{\fldinst INCLUDEPICTURE C:\\\\DOCUME~1\\\\CHIACH~1\\\\LOCALS~1\\\\Temp\\\\MyFiles\\\\Import\\\\CSD1\\\\9BE9BD1CC1B447A79A61F6E98CDB637A.jpg \\d}{\fldrslt}}}\plain\f1\fs20\par\par}
when call InsertRTFFromFileEd, i found the link C:\\\\DOCUME~1\\\\CHIACH~1\\\\LOCALS~1\\\\Temp\\\\MyFiles\\\\Import\\\\CSD1\\\\9BE9BD1CC1B447A79A61F6E98CDB637A.jpg is parsed and finally return only a C: to the OnImportPicture event. I found the problem come after the call to GetFieldCommandValue. I am currently using the latest version of rv.