At 10:05 PM 4/28/2009, Ed Rivkin wrote:

how does one eliminate the now additional blank lines and
get the spacing between addresses consistent regardless of
the number of lines that printed.

Ed,

The best option is to use "Variable Memo" control based on
the expression that handles the blank data.

Once you place the Variable Memo and associate the control
with appropriate variable, you may adjust the height to a
minimum and make sure to allow "stretch".

Example:

vCityStateZip = (City + ','&State&ZipCode)
vPrintLine1 = (FirstName&LastName)
vPrintLine2 = (IFEXISTS(Company,Company,AddressLine1))
vPrintLine3 = (IFEXISTS(Company,AddressLine1,(IFNULL(Company, +
(IFEXISTS(AddressLine2,AddressLine2,.vCityStateZip)),.vCityStateZip))))
vPrintLine4 = (IFEXISTS(Company,(IFEXISTS(AddressLine2,AddressLine2,.vCityStateZip)), +
(IFNULL(Company,(IFNULL(AddressLine2,' ',.vCityStateZip)),' '))))
vPrintLine5 = (IFEXISTS(Company,(IFEXISTS(AddressLine2,.vCityStateZip,' ')), +
(IFNULL(Company,' ',' '))))

vAddress = (.vPrintLine1+(CHAR(013))+.vPrintLine2+(CHAR(013))+.vPrintLine3+(CHAR(013))+.vPrintLine14(CHAR(013))+.vPrintLine1+(CHAR(013)))

In this example, the vAddress is defined as "NOTE" and placed as "Variable Memo"
control with "Stretch" set to true (checked).

Hope that helps!

Very Best R:egards,

Razzak.

P.S. If you need a sample report or label based on this technique, let me know.


Reply via email to