Home Server

ShiftRelativeTo in BeforePrint

edited August 2011 in Server
RB Server 12.04 / Delphi 2007 / Oracle 10G

I'm conditionally setting several subreports visible property in the
BeforePrint of the main report. Seems to work OK but I'm getting some blank
pages and sometimes entire subreports are not displayed even when set to
visible. Based on another post I believe I also need to set the
SiftRelativeTo proerpty but it doesn't appear to be exposed in the
'BeforePrint' even of the main report.

I can do this in BeforePrint -
SubReport1.Visible := true;

But I can't do this -
SubReport1.ShiftRelative := (some other subreport or nil)
or
SubReport1.ShiftRelativeTo := (some other subreport or nil)


Where can I set the shift relative value of the subreports?

Thanks - Jon Gray

Comments

  • edited August 2011
    The Subreport.ShiftRelativeTo property is a published property. I don't
    know what you mean when you say cannot set the property. Note that
    Subreports set to pbSection cannot have a ShiftRelativeTo relationship.


    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.