Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

ppVariable and wordwrap issues

edited July 2003 in General
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

Comments

  • edited July 2003
    Hi Chris,

    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.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    I tried it with a #13#10 as well, but it did not seem to do the trick. I
    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
  • edited July 2003
    Hi 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

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    7.02. I have fixed the report by using memo's and the OnPrint event. I
    will d/l your demo and give it a whirl.

    Thanks,
    Chris Davis

This discussion has been closed.