Adding extra objects to a template a runtime
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
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
This discussion has been closed.
Comments
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
luck.