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

Username property of a report

edited December 2009 in General
Hi all,

I'm trying to find a way to store in the TppReport, the classname of the
datamodule that contains the report-design and thought i could use Username
for this. I want to do this, because at runtime i expand a baseReport with
a certain subreport, and store that total template. Later on i read the template
and want to be able to re-create the datamoduile that contains the code specific
for that subreport


But after a lot of debugging i found the following very strange situation:

TppReport.SetUsername is implemented in TppCommunicator.SetUserName and works
like a charm, setting the protected FUsername field

but
TppReport.GetPropUsername is implemented in TppCustomReport.GetPropUserName
and always returning the constant 'Report' !!!!!

Why is the username of a report always 'Report' ?
Why isnt the SetUsername method "disabled" ?

and most important ... where can i store my classname?

greetings
Bas

Comments

This discussion has been closed.