Dear all,
I am trying to export a graph to excel using putexcel. The png image is normal dimensions but when I put in excel the image appears stretched. The code is below and I have specified the desired width and height, the png itself is the correct dimensions but when it is put in excel the image appears vertically stretch. This is the same no matter what width or height I set, I have also tried using a different image format such as jpg and still have the same problem.
thanks for your help
I am trying to export a graph to excel using putexcel. The png image is normal dimensions but when I put in excel the image appears stretched. The code is below and I have specified the desired width and height, the png itself is the correct dimensions but when it is put in excel the image appears vertically stretch. This is the same no matter what width or height I set, I have also tried using a different image format such as jpg and still have the same problem.
Code:
graph export "age_sex_graph.png", replace width(550) height(300) putexcel set "output.xlsx", sheet(graph1_2age_sex) modify putexcel B3=picture(age_sex_graph.png)
Comment