Quantcast
Channel: SCN : Popular Discussions - SAP Crystal Reports, version for Eclipse
Viewing all articles
Browse latest Browse all 893

Line Feed Char printing as a Square[]

$
0
0

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


Viewing all articles
Browse latest Browse all 893

Trending Articles



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