I have a Function field called @Property Address.
It contains the following where ChrW(10) = New Line character:
WhilePrintingRecords;
StringVar PropertyAddress;
PropertyAddress:= " ";
If {?HotelAddress1} <> "" then
PropertyAddress:= PropertyAddress & {?HotelAddress1} ;
If {?HotelAddress2} <> "" then
PropertyAddress:= PropertyAddress & ChrW(10) & {?HotelAddress2} ;
If {?HotelCity} <> "" then
PropertyAddress:= PropertyAddress & ChrW(10) & {?HotelCity} & ", " & {?HotelState} & " " & {?HotelZip};
If {@PropertyPhones} <> "" then
PropertyAddress:= PropertyAddress & ChrW(10) & {@PropertyPhones} ;
If {@WebEmail} <> "" then
PropertyAddress:= PropertyAddress & Chr(10) & {@WebEmail} ;
Trim(PropertyAddress)
When previewing report in CR2008 Viewer it looks great. I get the address block renedered nicely.
When I print to printer I get a Sqaure representing the LF on every line.
How can I get this to stop rendering the sqaure???
Fixed spelling - Edited by: InnMate on Sep 18, 2009 7:07 PM