There are two options for supressing that space. One is to manually move up the other elements (City, State, Zip) when the Address2 field is empty. The other options is to place a Memo component instead, set it to Strech, and build the address string. ie
Sorry to bother you but I have one other problem. The space between the lines in the memo seems very large. I tried to adjust this using the leading property, but do not see any difference. I have used values from -.25 to -1000 with no noticable difference. There is no mention in the help what the units of the number is (twips?)
-Rob "Alexander Kramnik (Digital Metaphors)" wrote
The Leading property is in report units. There is a mamimum negative value past which the Leading setting will be ignored (when the text starts to overlap) so it is possible that -0.25 is too much.
Comments
procedure TForm1.Address2Print(Sender: TObject);
begin
Address2.Visible := not(ppReport1.Pipeline['Address2'] = '');
end;
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
This seems to behave the same. It already printed nothing where Address2 was
to go. The problem is there is a space between Address1 and City, i.e:
John Doe
123 Main St.
Washington, D.C. 20010
What I want is:
John Doe
123 Main St.
Washington, D.C. 20010
I am just trying out the demo and have probably missed something easy. Is
there a setting I need for my CityStateZip field that indicates to move up?
"Alexander Kramnik (Digital Metaphors)" wrote
the other elements (City, State, Zip) when the Address2 field is empty. The
other options is to place a Memo component instead, set it to Strech, and
build the address string. ie
lsAddress := Pipeline['Name'] + #10#13;
lsAddress := lsAddress + Pipeline['Address1'] + #10#13;
if (Pipeline['Address1'] <> '') then
lsAddress := lsAddress + Pipeline['Address2'] + #10#13;
lsAddress := lsAddress + Pipeline['City'] + ', ' Pipeline['State'] + ' '
Pipeline['Zip'] + #10#13;
ppMemo1.Lines := lsAddress;
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Rbuilder/Demos/Reports.
--
Cheers,
Alexander Kramnik
Digital Metaphors
"Alexander Kramnik (Digital Metaphors)" wrote
http://www.digital-metaphors.com
info@digital-metaphors.com
Sorry to bother you but I have one other problem. The space between the
lines in the memo seems very large. I tried to adjust this using the
leading property, but do not see any difference. I have used values
from -.25 to -1000 with no noticable difference. There is no mention in the
help what the units of the number is (twips?)
-Rob
"Alexander Kramnik (Digital Metaphors)" wrote
past which the Leading setting will be ignored (when the text starts to
overlap) so it is possible that -0.25 is too much.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com