ppVariable and wordwrap issues
Hello,
I am having an issue with a ppVar and it wordwrapping. I am dynamically
setting the by basically iterating through a loop and adding a #13 to the
end of each iteration.
while this is not that do
str := str + 'stuff' + #13;
Once done, the reports prints out the variable just fine.
1 line
2 lines
I have four duck
5 and 6 and seven.
But, once I add another ppVar next to it, that is supposed to do the same
thing, just with different values, BOTH ppVars only print the first line,
and nothing else. If I delete one of the ppVars the other one goes back to
printing like it should. Can someone point out what I might be doing wrong.
Thanks,
Chris Davis
I am having an issue with a ppVar and it wordwrapping. I am dynamically
setting the by basically iterating through a loop and adding a #13 to the
end of each iteration.
while this is not that do
str := str + 'stuff' + #13;
Once done, the reports prints out the variable just fine.
1 line
2 lines
I have four duck
5 and 6 and seven.
But, once I add another ppVar next to it, that is supposed to do the same
thing, just with different values, BOTH ppVars only print the first line,
and nothing else. If I delete one of the ppVars the other one goes back to
printing like it should. Can someone point out what I might be doing wrong.
Thanks,
Chris Davis
This discussion has been closed.
Comments
1. When inserting a line break you need to add the 'line feed' operator as
well (ie. #13#10).
2. Which event are you using to write this text? Be sure that you are
using the TppVariable OnCalc event and you are using separate events for
each variable you place on your report. If this does not help, try using a
TppMemo component.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
looked into doing it with a memo, but I was put off by the fact that the
OnPrint method fires multiple times per band (I did not want the over head,
since this is a web app). I am using the OnCalc event on my ppVar.
Chris
Which version of ReportBuilder are you using? I was able to create a simple
example using ReportBuilder 7.02 and the TppVariable wordwrapping seems to
work correctly. Below is a link to the example I created. You may want try
downloading a trial version of ReportBuilder 7.02 and test with that.
http://www.digital-metaphors.com/tips/VariableWordWrapTest.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
will d/l your demo and give it a whirl.
Thanks,
Chris Davis