Quantcast
Channel: Adobe Community : Popular Discussions - Reporting
Viewing all articles
Browse latest Browse all 38309

Remove Blank Lines in Mail Label

$
0
0
Anyone have any ideas on how I can get around the bug that doesn't remove blank lines.

I'm creating a mail label that where some labels have to address lines that need to be on their own lines.

I tried adding some code to see if the length of the address 2 field was 2 but it won't output the address line - seems to always evaluate to false.

query.txtReferralContactFirstName & " " & query.txtReferralContactLastName & Chr(13) & Chr(10) &
query.txtReferralOrganizationName & Chr(13) & Chr(10)&
query.txtReferralLocationAddress1 & Chr(13) & Chr(10)&
<cfif isdefined("query.txtReferralLocationAddress2") AND len(query.txtReferralLocationAddress2) GT 0>
query.txtReferralLocationAddress2 & Chr(13) & Chr(10)&
</cfif>
query.txtCityName & " "&query.txtReferralLocationProv& Chr(13) & Chr(10) &
query.txtReferralLocationPC

I also tried changing my query to add address 2 to address 1 and insert the carriage return but the carriage return is treated as text and is output to the label as text.

If anyone knows of any other tools I can use to create Avery labels from CF, I'd appreciate that as well. Trying to manually set up HTML code to create the labels has been hit or miss.

Thanks

Viewing all articles
Browse latest Browse all 38309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>