While modifying several AR Reports / Forms i.e. AR Statement / AR Invoice I needed to add a line in the address block, I did not want it to be a standalone textbox because I wanted it dynamically sized and to stay together with the other address rows. It was two pieces of data that we wanted to separate with several spaces, one space works just fine, but as soon as you enter two you get this result.

After trying multiple approaches and finding no answer anywhere, I landed on this resolution, hopefully this will help you. The answer I implemented is to use HTML, start by setting the “ConvertHtmlToText” Property to True for the textbox in question.

Next change the Value to an HTML string below is the one I used in this example, it also has some parsing for USA +4 Zip Code formatting where a zip code is stored as numbers with masking in the UI, and would be shown here as numbers only but this inserts the dash, for better readability.
='<html><body>'
+ IIf([BAccountNoMask.AcctName]<> null, [BAccountNoMask.AcctName] + '<br>','')
+ IIf([CompanyAddress.AddressLine1]<> null, [CompanyAddress.AddressLine1] + '<br>', '')
+ IIf([CompanyAddress.AddressLine2]<>null,[CompanyAddress.AddressLine2] + '<br>','')
+ IIf([CompanyAddress.AddressLine3]<> null,[CompanyAddress.AddressLine3] + '<br>','')
+ IIf([CompanyAddress.City]<>null, [CompanyAddress.City],'')
+ IIf([CompanyAddress.City]<>null And [CompanyAddress.State]<>null, ', ', '')
+ IIf([CompanyAddress.State]<>null,[CompanyAddress.State],'')
+ IIf([CompanyAddress.PostalCode]<> null And [CompanyAddress.State]<> null, ', ', ' ')
+ IIf([CompanyAddress.PostalCode]<> null,IIf(Len([CompanyAddress.PostalCode])> 5,Left([CompanyAddress.PostalCode],5) + '-'
+ Right([CompanyAddress.PostalCode],4),[CompanyAddress.PostalCode]),'') + '<br>'
+ IIf([CompanyContact.Phone1] <>null,'Phone: ' + [CompanyContact.Phone1]+ '<br>','')
+ IIf([CompanyContact.Phone3] <>null,'Fax: ' + [CompanyContact.Phone3]+ '<br>','')
+ IIf([CompanyContact.WebSite]<>null,'Web: '+[CompanyContact.WebSite],'')
+ 'Multiple spaces in Text - a dash followed by 5 spaces.<br>'
+ '</body></html>'The results:
