Stata can create Open Office XML (*.docx) files. The commands below, taken from help mf__docx, create a table with observations from the current dataset. If you run the commands and open the saved document, you will see that each cell starts with a carriage return so that the table is twice as long as it needs to be. How can these carriage returns be suppressed?
Code:
mata: dh = _docx_new() end sysuse auto mata: _docx_add_data(dh, 1, 1, (1,10), ("mpg", "price", "foreign")) end mata: res = _docx_save(dh, "example.docx") end
Comment