Hello,
I'm trying to export somes graph and statistics to .doc.
It seems asdoc doesn't work with graphics (only asdocx but i don't have it).
So i am trying to use asdoc and png2rtf on the same doc, but when i use asdoc, all my graph above are deleting
In my example we can see that if we launch all my code, only graph 2 stay in the doc. In this example, i want to have table 1, graph 1 and graph 2 on the same word (with name of graphics as text and not in the png)
I can't buy asdocx, because my dofile must be usable by all my colleagues
thanks,
Raph
I'm trying to export somes graph and statistics to .doc.
It seems asdoc doesn't work with graphics (only asdocx but i don't have it).
So i am trying to use asdoc and png2rtf on the same doc, but when i use asdoc, all my graph above are deleting
Code:
sysuse auto, clear asdoc sum price, title(Tableau 1 : price) stat(mean sd min p25 p50 p75 max N) save(myfile.doc) replace scatter mpg weight graph export graph1.png, height(600) width(800) replace asdoc, text(\par \b Graphique 1 : First graph) append png2rtf using myfile.doc, g(graph1.png) append // it works if we only launch above code but not if we add more asdoc scatter weight length graph export graph2.png, height(600) width(800) replace asdoc, text(\par \b Graphique 2 : Second graph) append png2rtf using myfile.doc, g(graph1.png) append
I can't buy asdocx, because my dofile must be usable by all my colleagues
thanks,
Raph
Comment