none
Winword.exe repeats the text and then hangs RRS feed

  • Question

  • Here is the RTF which causes the hang. The Content spans only for one page.

    But when the RTF is opened from winword, the content repeats multiple times and then hangs.

    Please let me know if the RTF seems ok.

    ---------------------------------------------------------------------------

    {\rtf1\ansi{\fonttbl{\f0\fnil\fcharset0 Arial;}}{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}{\*\revtbl{Unknown;}}\viewkind4\pard\tx239\tx480\tx720\tx960\tx1200\tx1440\tx1680\tx1920\tx2160\tx2400\tx2640\tx2880\tx3120\tx3360\tx3600\tx3840\tx4080\tx4320\tx4560\tx4800\tx5040\tx5280\tx5520\tx5760\tx6000\tx6240\tx6480\tx6720\tx6960\tx7200\tx7440\tx7680\cb1\f0\cf2\fs20  \par Patient:   \b Physdoc, Pat1\b0             \b MRN: 234091\b0             \b FIN: 545005\b0              \par Age:   \b 3 years\b0      Sex:  \b M\b0      DOB:  \b 6/9/2010\b0  \par Associated Diagnoses:   \b None\b0  \par Author:   \b Pagadala, Pramod\b0  \par  \par\b Impression and Plan\b0  \par\pard\fi-240\li720\tx239\tx480\tx720\tx960\tx1200\tx1440\tx1680\tx1920\tx2160\tx2400\tx2640\tx2880\tx3120\tx3360\tx3600\tx3840\tx4080\tx4320\tx4560\tx4800\tx5040\tx5280\tx5520\tx5760\tx6000\tx6240\tx6480\tx6720\tx6960\tx7200\tx7440\tx7680 sentence \par\pard\fi-240\li960\tx239\tx480\tx720\tx960\tx1200\tx1440\tx1680\tx1920\tx2160\tx2400\tx2640\tx2880\tx3120\tx3360\tx3600\tx3840\tx4080\tx4320\tx4560\tx4800\tx5040\tx5280\tx5520\tx5760\tx6000\tx6240\tx6480\tx6720\tx6960\tx7200\tx7440\tx7680 Result term : Results \par\pard\fi-240\li960\tx239\tx480\tx720\tx960\tx1200\tx1440\tx1680\tx1920\tx2160\tx2400\tx2640\tx2880\tx3120\tx3360\tx3600\tx3840\tx4080\tx4320\tx4560\tx4800\tx5040\tx5280\tx5520\tx5760\tx6000\tx6240\tx6480\tx6720\tx6960\tx7200\tx7440\tx7680{\pard\trowd\trleft1440\trgaph30\cellx3750\cellx6290\cellx8831\cellx10512\intbl 10/30/2013 11:40 PM CDT\cell Admission Note-Physician\cell\cell\cell\intbl\row\trowd\trleft1440\trgaph30\cellx3750\cellx6290\cellx8831\cellx10512\intbl 10/30/2013 11:27 PM CDT\cell Admission Note-Physician\cell\cell (In Progress)\cell\intbl\row\trowd\trleft1440\trgaph30\cellx3750\cellx6290\cellx8831\cellx10512\intbl\cell Admission Note-Physician\cell\cell\cell\intbl\row\trowd\trleft1440\trgaph30\cellx3750\cellx6290\cellx8831\cellx10512\intbl 10/24/2013 7:30 AM CDT\cell Consultation Note\cell\cell (Transcribed)\cell\intbl\row\trowd\trleft1440\trgaph30\cellx3750\cellx6290\cellx8831\cellx10512\intbl 10/24/2013 7:21 AM CDT\cell Consultation Note\cell\cell (Transcribed)\cell\intbl\row\trowd\trleft1440\trgaph30\cellx3750\cellx6290\cellx8831\cellx10512\intbl 10/18/2013 3:37 AM CDT\cell Abdominal Paracentesis\cell Testing PNTiered\cell\cell\intbl\row  \par}}

    ----------------------------------------------------------------------------------------------------------------------------------------------------------

    Tuesday, November 5, 2013 8:48 AM

Answers

  • Try deleting:
    \*\revtbl{Unknown;}}
    and replacing the final:
    row  \par}}
    with:
    row}  \par}}

    Alternatively, you simply replace the final:
    row  \par}}
    with:
    row}  \par}

    You could also usefully delete all the spaces before each instance of:
    \par


    Cheers
    Paul Edstein
    [MS MVP - Word]


    • Edited by macropodMVP Wednesday, November 6, 2013 5:19 AM alternative mod.
    • Marked as answer by AlexBenCer Thursday, November 7, 2013 6:16 PM
    Wednesday, November 6, 2013 5:15 AM

All replies

  • The MSDN forums target programming using MS software, in the case of this forum, the Word APIs. This question is unrelated to programming the Word application - it's a question about using RTF in Word, which is "end-user". I recommend you ask this question in the "Communitites", where you're more likely to find people who may know something about the RTF file format.

    http://answers.microsoft.com/en-us/office/forum/word

    Unfortunately, we're not able to move questions from MSDN to the Communities. When you post you MUST mention the version of Word you're using. Please note also that Word uses a converter to open RTF and that RTF is no longer a standard alternative for Word 2010 and later versions. Here's the most recent RTF file format you can download; it might help you track down the issue (non-valid RTF):

    http://www.microsoft.com/en-us/download/details.aspx?id=10725


    Cindy Meister, VSTO/Word MVP, my blog

    Tuesday, November 5, 2013 5:00 PM
    Moderator
  • Try deleting:
    \*\revtbl{Unknown;}}
    and replacing the final:
    row  \par}}
    with:
    row}  \par}}

    Alternatively, you simply replace the final:
    row  \par}}
    with:
    row}  \par}

    You could also usefully delete all the spaces before each instance of:
    \par


    Cheers
    Paul Edstein
    [MS MVP - Word]


    • Edited by macropodMVP Wednesday, November 6, 2013 5:19 AM alternative mod.
    • Marked as answer by AlexBenCer Thursday, November 7, 2013 6:16 PM
    Wednesday, November 6, 2013 5:15 AM
  • Thank You that works. But could I ask you for the reasoning behind the correction.
    Thursday, November 7, 2013 6:16 PM
  • I believe the issue is that 'row  \par}}' puts the document's final paragraph mark within the table, whereas Word requires it to follow the table, which 'row}  \par}' does. FWIW, the malformed RFT rendered OK in Word 2003. Apparently Word 2007 & later are less forgiving.

    Cheers
    Paul Edstein
    [MS MVP - Word]

    Thursday, November 7, 2013 8:53 PM
  • Ok.

    Also when I remove the 'intbl' control word from the RTF, the document opens up fine. Hmmm.

    Friday, November 8, 2013 6:40 AM