Free Support Forum - aspose.com

CrystalReport generated RTF is not retaining the HTML formatting when using

Problem statement: Our application uses Crystal report version: 10.x or 13.x to design the .rpt files and create the RTF equivalent content. The issue is when we pass the crystal report generated rtf to aspose, the HTML formatting is not retained. All the text gets left aligned. However, in other application we had other RTF generated by TERN dll where the formatting is retained by aspose.
Question: Does aspose support RTF generated from Crystal report 13.x engine to generate HTML equivalent?
Below is the code snippet being used
public static string RtfToHtml(string rtf)
{
Aspose.Words.Document doc;

        using (Stream s = GenerateStreamFromString(rtf))
        {
            doc = new Aspose.Words.Document(s);
        }

        Aspose.Words.Saving.HtmlSaveOptions saveOptions = new Aspose.Words.Saving.HtmlSaveOptions();
        saveOptions.SaveFormat = Aspose.Words.SaveFormat.Html;
        saveOptions.ExportImagesAsBase64 = true;
        saveOptions.ExportHeadersFootersMode = Aspose.Words.Saving.ExportHeadersFootersMode.None;
        // Save the document to stream in HTML format.
        using (MemoryStream htmlStream = new MemoryStream())
        {
            doc.Save(htmlStream, saveOptions);
            // Read the HTML from the stream as plain text.
            String myHtml = Encoding.UTF8.GetString(htmlStream.ToArray());
            return myHtml;
        }
    }

Attached is the RTF output from Crystal report engine 13.x version

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fcharset0 Times New Roman;}}{\colortbl;\red0\green0\blue0;}{\info{\title }{\author Crystal Reports}{\doccomm Powered By Crystal}{\company Crystal Decisions}}{*\userprops {\propname Business Objects Context Information}\proptype30{\staticval 016B9E1421FC6E368B2C2DA50FE47B9139CD67C6D21AC5E8FF7915767290001201A2B3C5A5842DDAD026F719B895F7704CF0BC1962827B1B941FB163931E66275E40EDA670BBCCD82003B8E822CC38FA6BC956ABDC8BA0352FDCC132D068756743B8A7BA9262CA62AA76CBA87A89952949F22BA2D4D2774EB384D2934523D92}{\propname Business Objects Context Information1}\proptype30{\staticval 39554D5B86C97144287C476C0FAA62C8CADED2C2FA1430A52F1C36A39DCD8656AA3E8D52C72582B772B8701776E597492385F1DFC0B635C38AD1D00D554A428541A1E8991E031499B211B72704F69FFC311A7702D4F93790CFEBD1A8D496F1F91DDFA22D636C4E0E0A9C17038BA32B5012B91B6D16F36D0721DEB9EE8E6D727}{\propname Business Objects Context Information2}\proptype30{\staticval 6BE5C9F0F4FEF7556969CCC1B03D52173EF1C65DFEDECF01BF75A2A90F2BCE16D8A3798F933BFC83E617290E13362558A1E6E9A8E4C945BFF267FCE44C6309509A17287DB30C34D93D7D224D07074C542309CCCD06B007BF4CC56C9AE0A24E78780438614D5AE1BD94436D112B767505675E}}
\landscape\paperw15840\paperh12240\margl360\margr360\margt360\margb360\gutter0\windowctrl\ftnbj\viewkind1\viewscale100\sectd\linex0\sbknone
{\shp{*\shpinst\shpleft360\shptop2570\shpright15601\shpbottom2570\shpfhdr0\shpbxpage\shpbypage\shpwr3\shpwrk0\shpfblwtxt1{\sp{\sn txflTextFlow}{\sv 0}}{\sp{\sn shapeType}{\sv 20}}{\sp{\sn fBehindDocument}{\sv 1}}{\sp{\sn fLine}{\sv 1}}{\sp{\sn lineColor}{\sv 0}}{\sp{\sn lineWidth}{\sv 19050}}{\sp{\sn lineDashing}{\sv 0}}{\sp{\sn lineStyle}{\sv 0}}}}{\shp{*\shpinst\shpleft360\shptop2916\shpright15480\shpbottom2916\shpfhdr0\shpbxpage\shpbypage\shpwr3\shpwrk0\shpfblwtxt1{\sp{\sn txflTextFlow}{\sv 0}}{\sp{\sn shapeType}{\sv 20}}{\sp{\sn fBehindDocument}{\sv 1}}{\sp{\sn fLine}{\sv 1}}{\sp{\sn lineColor}{\sv 0}}{\sp{\sn lineWidth}{\sv 19050}}{\sp{\sn lineDashing}{\sv 0}}{\sp{\sn lineStyle}{\sv 0}}}}{\shp{*\shpinst\shpleft360\shptop11640\shpright15601\shpbottom11640\shpfhdr0\shpbxpage\shpbypage\shpwr3\shpwrk0\shpfblwtxt1{\sp{\sn txflTextFlow}{\sv 0}}{\sp{\sn shapeType}{\sv 20}}{\sp{\sn fBehindDocument}{\sv 1}}{\sp{\sn fLine}{\sv 1}}{\sp{\sn lineColor}{\sv 0}}{\sp{\sn lineWidth}{\sv 19050}}{\sp{\sn lineDashing}{\sv 0}}{\sp{\sn lineStyle}{\sv 0}}}}{\pard \pvpg\phpg\posx360\posy796\absw600\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Date}{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 :\par}}{\pard \pvpg\phpg\posx15000\posy815\absw600\absh-199\qr\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 1\par}}{\pard \pvpg\phpg\posx14100\posy796\absw960\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Page No}{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 :\par}}{\pard \pvpg\phpg\posx960\posy815\absw1140\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 06/20/2018\par}}{\pard \pvpg\phpg\posx2180\posy815\absw1860\absh-199\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 1:01:29 PM\par}}{\pard \pvpg\phpg\posx4080\posy740\absw7800\absh-281\qc\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600\tx3960\tx4320\tx4680\tx5040\tx5400\tx5760\tx6120\tx6480\tx6840\tx7200\tx7560{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs27 \cf1 Alert Type Dictionary Report\par}}{\pard \pvpg\phpg\posx2520\posy1073\absw11040\absh-199\qc\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600\tx3960\tx4320\tx4680\tx5040\tx5400\tx5760\tx6120\tx6480\tx6840\tx7200\tx7560\tx7920\tx8280\tx8640\tx9000\tx9360\tx9720\tx10080\tx10440\tx10800{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs19 \cf1 Range\par}}{\pard \pvpg\phpg\posx5280\posy1368\absw5520\absh-199\qc\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600\tx3960\tx4320\tx4680\tx5040\tx5400{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs19 \cf1 Flags\par}}{\pard \pvpg\phpg\posx5295\posy1645\absw5520\absh-200\qc\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600\tx3960\tx4320\tx4680\tx5040\tx5400{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs19 \cf1 Sort:\par}}{\pard \pvpg\phpg\posx6660\posy2206\absw1360\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Definition Set}{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 :\par}}{\pard \pvpg\phpg\posx360\posy2206\absw1200\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs19 \cf1 Organization:\par}}{\pard \pvpg\phpg\posx1620\posy2206\absw4800\absh-199\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600\tx3960\tx4320\tx4680{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 EntityName\par}}{\pard \pvpg\phpg\posx12210\posy2158\absw240\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx11190\posy2139\absw960\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Enforced}{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 :\par}}{\pard \pvpg\phpg\posx10650\posy2158\absw240\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx9810\posy2139\absw780\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Shared}{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 : \par}}{\pard \pvpg\phpg\posx8070\posy2158\absw1476\absh-199\ql\vertalt\tx360\tx720\tx1080\tx1440{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Ent\par}}{\pard \pvpg\phpg\posx360\posy2604\absw1140\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Name\par}}{\pard \pvpg\phpg\posx6960\posy2604\absw780\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Current\par}}{\pard \pvpg\phpg\posx8880\posy2604\absw840\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Enforced\par}}{\pard \pvpg\phpg\posx7980\posy2604\absw720\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Active\par}}{\pard \pvpg\phpg\posx5700\posy2604\absw1145\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Code\par}}{\pard \pvpg\phpg\posx10920\posy2604\absw859\absh-199\fi0 \sl240\slmult1\ltrpar\qr\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Entry\par}}{\pard \pvpg\phpg\posx4140\posy2604\absw1145\absh-199\fi0 \sl240\slmult1\ltrpar\ql\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 Mnemonic\par}}{\pard \pvpg\phpg\posx9960\posy2604\absw780\absh-199\fi0 \sl240\slmult1\ltrpar\qr\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b\i0\ul0\strike0\fs17 \cf1 ID\par}}{\pard \pvpg\phpg\posx5700\posy3022\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 1\par}}{\pard \pvpg\phpg\posx9960\posy3022\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 2\par}}{\pard \pvpg\phpg\posx10920\posy3022\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 2\par}}{\pard \pvpg\phpg\posx7980\posy3022\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy3022\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy3022\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy3022\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 DD\par}}{\pard \pvpg\phpg\posx360\posy3022\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Drug Drug\par}}{\pard \pvpg\phpg\posx5700\posy3313\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 10\par}}{\pard \pvpg\phpg\posx9960\posy3313\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 11\par}}{\pard \pvpg\phpg\posx10920\posy3313\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 11\par}}{\pard \pvpg\phpg\posx7980\posy3313\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy3313\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy3313\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy3313\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 PLICD9Rq\par}}{\pard \pvpg\phpg\posx360\posy3313\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Problem Linkage Billable ICD9 Required\par}}{\pard \pvpg\phpg\posx5700\posy3604\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 11\par}}{\pard \pvpg\phpg\posx9960\posy3604\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 12\par}}{\pard \pvpg\phpg\posx10920\posy3604\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 12\par}}{\pard \pvpg\phpg\posx7980\posy3604\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy3604\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy3604\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy3604\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 PLICD9RqPL\par}}{\pard \pvpg\phpg\posx360\posy3604\absw3720\absh-480\fi0 \sl240\slmult1\ltrpar\ql\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Problem Linkage Billable ICD}{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 9 }{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Required for }{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Performing Location\par}}{\pard \pvpg\phpg\posx5700\posy4130\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 12\par}}{\pard \pvpg\phpg\posx9960\posy4130\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 13\par}}{\pard \pvpg\phpg\posx10920\posy4130\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 13\par}}{\pard \pvpg\phpg\posx7980\posy4130\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy4130\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy4130\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy4130\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 DrugDose\par}}{\pard \pvpg\phpg\posx360\posy4130\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Drug Dose\par}}{\pard \pvpg\phpg\posx5700\posy4421\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 2\par}}{\pard \pvpg\phpg\posx9960\posy4421\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 3\par}}{\pard \pvpg\phpg\posx10920\posy4421\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 3\par}}{\pard \pvpg\phpg\posx7980\posy4421\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy4421\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy4421\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy4421\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 DF\par}}{\pard \pvpg\phpg\posx360\posy4421\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Drug Food\par}}{\pard \pvpg\phpg\posx5700\posy4712\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 3\par}}{\pard \pvpg\phpg\posx9960\posy4712\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 4\par}}{\pard \pvpg\phpg\posx10920\posy4712\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 4\par}}{\pard \pvpg\phpg\posx7980\posy4712\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy4712\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy4712\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy4712\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 DA\par}}{\pard \pvpg\phpg\posx360\posy4712\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Drug Alcohol\par}}{\pard \pvpg\phpg\posx5700\posy5003\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 4\par}}{\pard \pvpg\phpg\posx9960\posy5003\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 5\par}}{\pard \pvpg\phpg\posx10920\posy5003\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 5\par}}{\pard \pvpg\phpg\posx7980\posy5003\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy5003\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy5003\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy5003\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 DT\par}}{\pard \pvpg\phpg\posx360\posy5003\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Duplicate Therapy\par}}{\pard \pvpg\phpg\posx5700\posy5294\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 5\par}}{\pard \pvpg\phpg\posx9960\posy5294\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 6\par}}{\pard \pvpg\phpg\posx10920\posy5294\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 6\par}}{\pard \pvpg\phpg\posx7980\posy5294\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy5294\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy5294\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy5294\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 DC\par}}{\pard \pvpg\phpg\posx360\posy5294\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Drug Condition\par}}{\pard \pvpg\phpg\posx5700\posy5585\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 6\par}}{\pard \pvpg\phpg\posx9960\posy5585\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 7\par}}{\pard \pvpg\phpg\posx10920\posy5585\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 7\par}}{\pard \pvpg\phpg\posx7980\posy5585\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy5585\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy5585\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy5585\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 AR\par}}{\pard \pvpg\phpg\posx360\posy5585\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Adverse Reaction\par}}{\pard \pvpg\phpg\posx5700\posy5876\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 7\par}}{\pard \pvpg\phpg\posx9960\posy5876\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 8\par}}{\pard \pvpg\phpg\posx10920\posy5876\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 8\par}}{\pard \pvpg\phpg\posx7980\posy5876\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy5876\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy5876\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy5876\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 FORM\par}}{\pard \pvpg\phpg\posx360\posy5876\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Formulary\par}}{\pard \pvpg\phpg\posx5700\posy6167\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 8\par}}{\pard \pvpg\phpg\posx9960\posy6167\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 9\par}}{\pard \pvpg\phpg\posx10920\posy6167\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 9\par}}{\pard \pvpg\phpg\posx7980\posy6167\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy6167\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy6167\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy6167\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 MN\par}}{\pard \pvpg\phpg\posx360\posy6167\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Medical Necessity\par}}{\pard \pvpg\phpg\posx5700\posy6458\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 9\par}}{\pard \pvpg\phpg\posx9960\posy6458\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 10\par}}{\pard \pvpg\phpg\posx10920\posy6458\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 10\par}}{\pard \pvpg\phpg\posx7980\posy6458\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy6458\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy6458\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy6458\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 PL\par}}{\pard \pvpg\phpg\posx360\posy6458\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Problem Linkage\par}}{\pard \pvpg\phpg\posx5700\posy6749\absw1145\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 DE\par}}{\pard \pvpg\phpg\posx9960\posy6749\absw780\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 14\par}}{\pard \pvpg\phpg\posx10920\posy6749\absw859\absh-199\qr\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 14\par}}{\pard \pvpg\phpg\posx7980\posy6749\absw720\absh-199\ql\vertalt\tx360{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx6960\posy6749\absw780\absh-199\ql\vertalt\tx360\tx720{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx8880\posy6749\absw360\absh-199\ql\vertalt{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Y\par}}{\pard \pvpg\phpg\posx4140\posy6749\absw1440\absh-199\ql\vertalt\tx360\tx720\tx1080{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 DoseError\par}}{\pard \pvpg\phpg\posx360\posy6749\absw3720\absh-240\ql\vertalt\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600{\ltrch\f0 \kerning2 \dbch \af0 \hich \af0 \loch \af0 \b0\i0\ul0\strike0\fs19 \cf1 Drug Dose Error\par}}}

@GururajKuruba,

Thanks for your inquiry. Please note that Aspose.Words mimics the behavior of MS Word. If you convert your RTF to HTML using MS Word, you will get the same output.

We suggest you please save your RTF to HtmlFixed file format. Hope this helps you.

Document doc = new Document(new MemoryStream(File.ReadAllBytes(MyDir + "rtfDoc.txt")));

Aspose.Words.Saving.HtmlFixedSaveOptions saveOptions = new Aspose.Words.Saving.HtmlFixedSaveOptions();
saveOptions.SaveFormat = Aspose.Words.SaveFormat.HtmlFixed;
                 
doc.Save(MyDir + "18.7.html", saveOptions);