Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stata 15 and RTF

    Hi, Listers,

    I am using a windows system (Simplified Chinese) and my WINWORD.exe is saved at the following folder:


    C:\Program Files (x86)\Microsoft Office\Office14/WINWORD.EXE

    thus I am able to use the following command to shut down word and open an RTF file:

    !taskkill /F /IM WINWORD.EXE /T
    winexec "C:\Program Files (x86)\Microsoft Office\Office14/WINWORD.EXE" ///
    E:/Stata教程/rtf/mytable.rtf


    With the attached do file i can generate a word document containing all my artificial results in Stata 13, with Chinese characters.

    My question is, with the newly Stata MP 15, the enclosed file can be run, but the output file have some "messy codes"

    Why Stata 13 can tackle Chinese well but not Stata 15??


    Another question is, in Stata early version, we can use esttab to report regression results, and the output can be an RTF file. Stata 15 now has putdocx command and I am loving it. But how can i report the regression results to the DOCX? is there a esttab type command which can report results to DOCX files directly?


    Best

    Tony



    Attached Files

  • #2
    It is not clear what you mean with "messy codes" and I didn't try your do-file but perhaps this has something to do with Unicode support, which was introduced in Stata 14.

    Comment


    • #3
      Thanks and yes, it is related to unicode. Problem solved and thanks

      Tony

      Comment

      Working...
      X