MapInfo Pro

 View Only
  • 1.  Smarttext options

    Posted 06-29-2022 06:46
    I am looking to get some repeatable text into the smarttext files, this is working well for continuous text of differing lengths for disclaimers etc but I would like to add some carriage returns or line breaks for address data to add to the template. I have tried a number of usual line break options but all produce an error, is it possible to add these so the data is formatted correctly when output. Many Thanks Alan

    ------------------------------
    Alan Leach
    Suffolk County Council
    ------------------------------


  • 2.  RE: Smarttext options
    Best Answer

    Posted 06-29-2022 06:56
    Alan, 

    Do you mean editing the XML file to be picked up by the smart text drop down in v21?  

    If so, then adding CHR$(13)  does seem to work.  E.g. line from my SmartTextAliases.xml file

    <Alias name="Author" description="Originator's name.">"Your" +CHR$(13)+ "name"</Alias>

    When used in Pro this does add Your and Name on separate lines.

    HTH

    Nick


    ------------------------------
    Nick Hall
    Mapchester LTD
    Manchester
    ------------------------------



  • 3.  RE: Smarttext options

    Posted 06-29-2022 08:40
    Perfect Nick, thanks very much for the swift reply, that was one of the options I had tried but I think maybe my linking quotes got out of Sync! Cheers Alan

    ------------------------------
    Alan Leach
    Suffolk County Council
    ------------------------------