HTML to RTF works with editor.SaveRTF/editor.LoadRTF but fails when calling CuteEditor.Convertor.RTF.HTML2RTF(strHTML)

  •  03-01-2007, 11:45 PM

    HTML to RTF works with editor.SaveRTF/editor.LoadRTF but fails when calling CuteEditor.Convertor.RTF.HTML2RTF(strHTML)

    I'm testing the product for HTML to RTF conversion and the Converter.RTF.HTML2RTF fails with the following error:
     
    "Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index"
     
    The length of the string below is 9955 characters.
     
     

    "<DIV class=Section1>

    <P class=MsoNormal style="TEXT-ALIGN: center; tab-stops: 247.5pt" align=center><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 16pt; FONT-FAMILY: 'Arial','sans-serif'">DRINKING WATER WARNING</SPAN></B><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="TEXT-ALIGN: center; tab-stops: 247.5pt" align=center><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="TEXT-ALIGN: center; tab-stops: 247.5pt" align=center><SPAN style="FONT-SIZE: 16pt; FONT-FAMILY: 'Arial','sans-serif'">Brian Test did not take a confirmation sample to determine if the water has high levels of nitrate</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"> </SPAN><SPAN style="FONT-SIZE: 16pt; FONT-FAMILY: 'Arial','sans-serif'"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>–</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="TEXT-ALIGN: center; mso-list: skip" align=center><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="TEXT-ALIGN: center; mso-list: skip" align=center><SPAN style="FONT-SIZE: 15pt; FONT-FAMILY: 'Arial','sans-serif'">DO NOT GIVE THE WATER TO INFANTS UNDER 6 MONTHS OLD OR USE IT TO MAKE INFANT FORMULA<O:P></O:P></SPAN></P>

    <P class=MsoNormal style="TEXT-ALIGN: center; mso-list: skip" align=center><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="TEXT-ALIGN: center; mso-list: skip" align=center><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 'Arial','sans-serif'"></SPAN><SPAN style="FONT-SIZE: 15pt; FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></B></P>

    <P class=MsoNormal style="mso-list: skip"><I style="mso-bidi-font-style: normal"><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Arial','sans-serif'">We are required to monitor your drinking water for nitrate on a regular basis. Results of regular monitoring are an indicator of whether or not our drinking water meets health standards. Water sample results received on Feb 2, 2008 showed nitrate levels of above the nitrate standard, or maximum contaminant level (<ST1:STOCKTICKER w:st="on">MCL</ST1:STOCKTICKER>), of [$<ST1:STOCKTICKER w:st="on">MCL</ST1:STOCKTICKER>$].<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>We were required to take a confirmation sample within 24 hours.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>We did not complete the required confirmation sample monitoring and, therefore, cannot be sure of the quality of our drinking water at this time.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><O:P></O:P></SPAN></I></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><div>

    <table style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=452 border=0>

    <colgroup>

    <col style="WIDTH: 100%; mso-width-source: userset; mso-width-alt: 16530" width=452>

    <tbody>

    <tr style="HEIGHT: 38.25pt" height=51>

    <td class=xl66 style="WIDTH: 100%; HEIGHT: 38.25pt" width="100%" height=51>Nitrate in drinking water can come from natural, industrial, or agricultural sources (including septic systems and run-off). Levels of nitrate in drinking water can vary throughout the year.&nbsp;</td>

    </tr>

    </tbody>

    </table>

    </div><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">Este informe contiene información importante acerca de su agua potable. Haga que alguien lo traduzca para usted, o hable con alguien que lo entienda.<br /><br /><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Arial','sans-serif'">What should I do?<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>What does this mean?<O:P></O:P></SPAN></B></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="TEXT-AUTOSPACE: ideograph-numeric; mso-layout-grid-align: auto"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><p>

    <table cellSpacing=0 cellPadding=0 width="100%" border=0>

    <colgroup>

    <col width="100%">

    <tbody>

    <tr height=323>

    <td width="100%" height=323>

    <ul>

    <li><font size=+0><strong>DO NOT GIVE THE WATER TO INFANTS.</strong></font><strong><font size=+0> </font></strong></li>

    </ul>

    <br>

    <ul>

    <li><strong><em><font size=+0>Infants below the age of six months who drink water containing nitrate in excess of the MCL could become seriously ill and, if untreated, may die. Symptoms include shortness of breath and blue baby syndrome.</font><font size=+0> </font></em></strong></li>

    </ul>

    <font size=+0>

    <p><br></p>

    </font>

    <ul>

    <li><font size=+0>Blue baby syndrome is indicated by blueness of the skin. Symptoms in infants can develop rapidly, with health deteriorating over a period of days. If symptoms occur, seek medical attention immediately.</font> </li>

    </ul>

    <font size=+0>

    <p><br></p>

    </font>

    <ul>

    <li><font size=+0>Water, juice, and formula for children under six months of age should not be prepared with tap water. Bottled water or other water low in nitrate should be used for infants until further notice.</font> </li>

    </ul>

    <font size=+0>

    <p><br></p>

    </font>

    <ul>

    <li><font size=+0>DO NOT BOIL THE WATER. Boiling, freezing, filtering, or letting water stand does not reduce the nitrate level. Excessive boiling can make nitrate more concentrated, because nitrate remains behind when the water evaporates.&nbsp;</font> </li>

    </ul>

    </td>

    </tr>

    </tbody>

    </table>

    </p><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="MARGIN-LEFT: 0in; TEXT-INDENT: 0in; TEXT-AUTOSPACE: ideograph-numeric; tab-stops: list 9.0pt; mso-list: l1 level1 lfo2; mso-layout-grid-align: auto"><SPAN style="mso-list: Ignore">•<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">Adults and children older than six months can drink the tap water (nitrate is a concern for infants because they can’t process nitrate in the same way adults can). However, if you are pregnant or have specific health concerns, you may wish to consult your doctor.<O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Arial','sans-serif'">What is being done?<O:P></O:P></SPAN></B></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><div>This is what is being done</div><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">We expect to return to compliance by February 20, 2007<O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">For more information, please contact Brian at (206) 780-5139 or 123 Anystreet Bainbridge Island, WA 98110.<O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><I><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">Please share this information with all the other people who drink this water, especially those who may not have received this notice directly (for example, people in apartments, nursing homes, schools, and businesses). You can do this by posting this notice in a public place or distributing copies by hand or mail.</SPAN></I><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><SPAN style="FONT-FAMILY: 'Arial','sans-serif'"><O:P></O:P></SPAN></P>

    <P class=MsoNormal><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">This notice is being sent to you by Brian Test.<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>State Water System ID# WA123456.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><O:P></O:P></SPAN></P>

    <P class=MsoNormal><SPAN style="FONT-FAMILY: 'Arial','sans-serif'">Date distributed: 3/1/2007. <U><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></U></SPAN></P>

    <P class=MsoNormal style="mso-list: skip"><O:P></O:P></P></DIV>"

    Filed under:
View Complete Thread