Complex labels do not print when script is run from command prompt.

3920
3
Jump to solution
04-28-2015 09:22 AM
JeffMitzelfelt
New Contributor III

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

0 Kudos
1 Solution

Accepted Solutions
JeffMitzelfelt
New Contributor III

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.

View solution in original post

0 Kudos
3 Replies
DarrenWiens2
MVP Honored Contributor

Try using "\r\n" instead of just "\n".

0 Kudos
JeffMitzelfelt
New Contributor III

Thanks, I'll give it a shot

0 Kudos
JeffMitzelfelt
New Contributor III

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.

0 Kudos