I'm generating a series of maps that have some complex labeling. The labels display on the generated PDFs if the script is run within ArcMap but do not display if the script is run from the command prompt. The offending labels have multiple lines separated by linefeeds (e.g. "121\nBill Brown\n123-4567".) The "normal" labels on the same layer print fine on the PDFs.
I would like to set this process up to run unattended on a schedule, and the maps are just about useless without the complete labeling.
If it is not possible to get the labels to print when the script is run from the command line, is it possible to script ArcMap to open and run the python script?
Thanks,
Jeff
Solved! Go to Solution.
No Joy on adding the \r to the label strings.
Interestingly enough I changed the code in the label expression from python to jscript and the labels now show up on the PDFs. Who da thunk.
My head hurts.
Try using "\r\n" instead of just "\n".
Thanks, I'll give it a shot
No Joy on adding the \r to the label strings.
Interestingly enough I changed the code in the label expression from python to jscript and the labels now show up on the PDFs. Who da thunk.
My head hurts.