<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Complex labels do not print when script is run from command prompt. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/complex-labels-do-not-print-when-script-is-run/m-p/615126#M47989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using "\r\n" instead of just "\n".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 16:25:45 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2015-04-28T16:25:45Z</dc:date>
    <item>
      <title>Complex labels do not print when script is run from command prompt.</title>
      <link>https://community.esri.com/t5/python-questions/complex-labels-do-not-print-when-script-is-run/m-p/615125#M47988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 16:22:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/complex-labels-do-not-print-when-script-is-run/m-p/615125#M47988</guid>
      <dc:creator>JeffMitzelfelt</dc:creator>
      <dc:date>2015-04-28T16:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Complex labels do not print when script is run from command prompt.</title>
      <link>https://community.esri.com/t5/python-questions/complex-labels-do-not-print-when-script-is-run/m-p/615126#M47989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using "\r\n" instead of just "\n".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 16:25:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/complex-labels-do-not-print-when-script-is-run/m-p/615126#M47989</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-04-28T16:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Complex labels do not print when script is run from command prompt.</title>
      <link>https://community.esri.com/t5/python-questions/complex-labels-do-not-print-when-script-is-run/m-p/615127#M47990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I'll give it a shot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 16:31:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/complex-labels-do-not-print-when-script-is-run/m-p/615127#M47990</guid>
      <dc:creator>JeffMitzelfelt</dc:creator>
      <dc:date>2015-04-28T16:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Complex labels do not print when script is run from command prompt.</title>
      <link>https://community.esri.com/t5/python-questions/complex-labels-do-not-print-when-script-is-run/m-p/615128#M47991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Joy on adding the \r to the label strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My head hurts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 22:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/complex-labels-do-not-print-when-script-is-run/m-p/615128#M47991</guid>
      <dc:creator>JeffMitzelfelt</dc:creator>
      <dc:date>2015-04-28T22:40:20Z</dc:date>
    </item>
  </channel>
</rss>

