Basically, I have a formula that runs while printing records, that can print 0-3 rows using chr(13) and global stringvars to form a final string (tried with chr(10) and chr(13)), in the same page footer as a sub report that can have anywhere from 0 rows to above 3. Both are set to "Can grow" however the formula field never grows past the sub-report.
I'm using Crystal Reports 9.
I also tried using a box around the formula leading from the previous page footer to another page footer.
Here's my formula
WHILEPRINTINGRECORDS;
global stringvar WD;
global stringvar ADV;
global stringvar NASC;
stringvar final :="";
IF WD <> "" AND ADV <> "" AND NASC <> "" THEN final := WD + Chr(13) + chr(10) + NASC + Chr(13) + chr(10) + ADV
ELSE IF WD = "" AND ADV <> "" AND NASC <> "" THEN final := NASC + Chr(13) + chr(10) + ADV
ELSE IF WD <> "" AND ADV = "" AND NASC <> "" THEN final := WD + Chr(13) + chr(10) + NASC
ELSE IF WD <> "" AND ADV <> "" AND NASC = "" THEN final := WD + Chr(13) + chr(10) + ADV
ELSE IF WD = "" AND ADV = "" AND NASC = "" THEN final := "";
final
And here's a sample of one of one of the formulas that set the stringvars, they all follow the same method.
WHILEPRINTINGRECORDS;
global Stringvar ADV;
global Stringvar Status;
if({COLUMN1}="EX"
OR {COLUMN1}="ADV"
OR {COLUMN1}="CR"
OR {COLUMN1} = "DES" )
THEN ( ADV := "# - EXEMPT"; Status := "Status"; "#") ELSE ""