Hi to all,
I'm using arcpy to export map in JPEG format. I am not able to get the TextElement in the output file. The label "Confini comunali" doesn't appear in the JPEG file. Even if I don't change TextElement.text, it doesn't work.
Can anyone help me?
Thank you,
Michele
PS Using ArcMap 10.1 on Windows 10, Python 32-bit.
The portion of my script is:
mxd = arcpy.mapping.MapDocument(r"C:\StampeGriglie\Comuni.mxd")
df = arcpy.mapping.ListDataFrames(mxd)[0]
# Change text element
TextElement = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "MioTesto")[0]
TextElement.text = "Confini comunali"
path_output = "C:/StampeGriglie/Output/1234.jpg"
arcpy.mapping.ExportToJPEG(mxd, path_output, df,
df_export_width=9360,
df_export_height=6623,
resolution=200,
world_file=False)
del mxd