Unable to set TppSubreport.printbehavior at run time
When I try to set the PrintBehavior of a TppSubReport in code I get the
error message:
"Undeclared identifier"
The Object Inspector has it as a property...
Is there some other way I should be setting this in code?
Here's my code sample:
With TppSubReport.Create(self) Do begin
{Add the report to the main report's detail band}
Band := vFlyer.DetailBand;
PrintBehavior := pbSection;
end; //With Sub Report
Any help would be appreciated.
error message:
"Undeclared identifier"
The Object Inspector has it as a property...
Is there some other way I should be setting this in code?
Here's my code sample:
With TppSubReport.Create(self) Do begin
{Add the report to the main report's detail band}
Band := vFlyer.DetailBand;
PrintBehavior := pbSection;
end; //With Sub Report
Any help would be appreciated.
This discussion has been closed.
Comments
vFlyer.DetailBand.PrintHeight := phDynamic;
vFlyer is a TppReport. I have a feeling these two problems are related,
somehow.
Add ppTypes to the uses clause.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
standard type (like string or integer) gives me the undefined error. It
seems like it's looking for a unit that I don't have in my "Uses"
clause. I can't seem to find in the help files what that unit is.
The enumerated types in ReportBuilder are defined in the ppTypes unit.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com