Laurie -
Congrats at customizing your invoice!
Check out how we did the "Estimate (Custom)" template was built. It's tricky, but here's how we did it:
1. Put one textbox object, called xrBillAddress.
2. Edied the properties in the lower-right of the designer, expanded the Scripts property, and clicked in the Before Print script.
3. Click the "..." in Before Print Script.
4. Put the following script in. This way it formats it nicely. You can just copy and paste this and it'll work, as long as you called your textbox "xrBillAddress" as well.
Paul
Private Sub OnBeforePrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs)
'Create a carriage return variable, for simplicity
dim sNewLine as String = Microsoft.VisualBasic.ChrW(13) + Microsoft.VisualBasic.ChrW(10)
xrBillAddress.Text = GetCurrentColumnValue("BillAddressAddr1") _
+ Microsoft.VisualBasic.Interaction.IIf(GetCurrentColumnValue("BillAddressAddr2") <> String.Empty,sNewLine + GetCurrentColumnValue("BillAddressAddr2"),"") _
+ Microsoft.VisualBasic.Interaction.IIf(GetCurrentColumnValue("BillAddressAddr3") <> String.Empty,sNewLine + GetCurrentColumnValue("BillAddressAddr3"),"") _
+ Microsoft.VisualBasic.Interaction.IIf(GetCurrentColumnValue("BillAddressCity") <> String.Empty,sNewLine + GetCurrentColumnValue("BillAddressCity") + ", " + GetCurrentColumnValue("BillAddressState") + " " + GetCurrentColumnValue("BillAddressPostalCode"),"") _
+ Microsoft.VisualBasic.Interaction.IIf(GetCurrentColumnValue("BillAddressCountry") <> String.Empty,sNewLine + GetCurrentColumnValue("BillAddressCountry"),"")
End Sub