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

Adding extra objects to a template a runtime

edited August 2002 in General
I wonder if anyone can help me, I am trying to add a tppDBmemo to a
subreport header band of a template that I have loaded from file and then
save it again so the report will have an extra memo field. I have tried to
create and instance of tppdbmemo assign properties and then use
ppreportheader22.AddObject(Newmemo) then save the report but it is at the
AddObject point I get an Access Violation

Any Ideas or a sample of hoe this should be done would be appreciated.

Tom

Comments

  • edited August 2002
    "Tom" wrote in message news:3d499f12@dm500....

    My initial guess is that you haven't set the Band property of the memo
    control, but it's just a guess. You might want to look at the example of
    creating a report in code in the ReportBuilder Developers Guide. You'll
    find it in the ..\RBuilder\Developers Guide\ directory. Compare your code
    with the example to see what you're missing.

    HTH

    Mike
  • edited August 2002
    Thanks, I had looked at the sample in the dev guide and set the band, but no
    luck.
  • edited August 2002
    I have it working I did not need to use the AddObject at all.
This discussion has been closed.