Announcement

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

  • Embedding asdoc tables in putdocx

    Hi everyone,

    I am trying to produce publication-style tables in a dynamic word document. For my case, I need 2-way tabulations (with percentages) - I came across
    Code:
     asdoc
    which can give me nicely formatted tables but I have not been able to figure out a way in which I can embed the table generated by
    Code:
     asdoc
    in a putdocx/putpdf/markdoc type document.

    Has anyone ever tried/done this before?

    It will be extremely helpful if someone can help me find a workaround.

    Thanks,
    Rachita


  • #2
    For those who are not yet familiar with asdoc, asdoc can be downloaded from SSC and can be used with almost all Stata commands. Here is a short blog post that shows how asdoc can be used with any Stata command http://fintechprofessor.com/2018/02/...basic-example/. You can also watch several YouTube videos that show the use of asdoc https://www.youtube.com/watch?v=zdI6...LwodAk2oqLYhr-

    Code:
    * For installation of the stable version 
    ssc install asdoc
    
    * For installation of the new beta version
    net install asdoc, from(http://fintechprofessor.com) replace
    help asdoc
    If you are using the SSC version of asdoc, then you should try also the beta version of asdoc that produces even better quality tabulation tables.

    Concerning your question, please note that asdoc writes the output file in RTF format, while putdocx uses the open XML format. If you want to use the file created by asdoc in docx file format, then you have to manually open the asdoc output file, copy the tables and paste them inside the docx file. After that, the tables are automatically converted to docx format.
    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    FinTechProfessor.com
    https://asdocx.com
    Check out my asdoc program, which sends outputs to MS Word.
    For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

    Comment

    Working...
    X