asdocx: Export from Stata to Word, Excel, LaTeX & HTML › Forums › asdocx Forum › How to upload pictures to forum posts and show the stata results formatted? › Reply To: How to upload pictures to forum posts and show the stata results formatted?
Adding the pictures’ upload feature is a bit tricky. However, you can post asdocx output in html format. Follow these steps:
1. Use the save(myfile.html) option with asdocx to save the output in html
2. Open the output file with text editor and copy the contents starting from
class ="asdocxtable"> upto the
3. You shall see a formatted table
</div>
. Paste it in the <pre>
</pre>
tags.3. You shall see a formatted table
In the following example, I have copied the mentioned contents from myfile.html file and simply pasted it below.
sysuse auto, clear asdocx sum, replace save(myfile.html)Descriptive Statistics
Variable Obs Mean Std. Dev. Min Max price 74 6165.257 2949.496 3291 15906 mpg 74 21.297 5.786 12 41 rep78 69 3.406 0.99 1 5 headroom 74 2.993 0.846 1.5 5 trunk 74 13.757 4.277 5 23 weight 74 3019.459 777.194 1760 4840 length 74 187.932 22.266 142 233 turn 74 39.649 4.399 31 51 displacement 74 197.297 91.837 79 425 gear_ratio 74 3.015 0.456 2.19 3.89 foreign 74 0.297 0.46 0 1 Notes: