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

TppDesigner and/or TppReport in frames

edited November 2005 in General
My design has a TTabsheet on a TFrame on a TForm. I've seen older posts that
say putting Tpp objects on a frame causes problems. Is that still the case?

What I have now is a TppDesigner that is called with a showModal so that the
report shows up in its own modal window. What I'd rather have is for the
report (with design ability) to show up on one of the pages of the
TTabsheet.

My current code looks something like this:

var
rbRpt : TppReport; // assigned by the descendant in setProcs...

begin
...
rbDesigner.Report := rbRpt;

rbRpt.Template.DatabaseSettings.DataPipeline :=
dbpReportDefinition;
rbRpt.Template.DatabaseSettings.Name :=
ReportName;
rbRpt.Template.LoadFromDatabase;

rbDesigner.WindowState := wsMaximized;

try
rbDesigner.ShowModal;
finally
// clean up ...
...

Two questions:

1) Is it possible to show a TppDesigner within a page of a TTabsheet, when
that TTabsheet is embedded in a frame?
2) If yes to 1), how can I do this with minimal changes to my existing code?
Note too that my preview window has some additional buttons from the
standard, which I get by registering my own plugin -
TppPreviewPlugIn.Register(TRBPreviewPlugin); and I would like everything
that had been appearing within the modal window to appear in the TPage,
toolbar and all...

Thanks in advance

Keith

Comments

  • edited November 2005
    Hi Keith,

    The Designer and Preview windows were designed to work as a form.
    Displaying them on a frame is not something that we have tested or pursued
    as an option for these forms. You are welcome to try it however we cannot
    guarantee that it will work correctly or support it if it does not.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2005
    In your own examples you have a TppViewer on a TPanel on a TForm. Is that a
    different scenario? Can I safely put a TppViewer on a TTabSheet on a TFrame
    on a TForm?

    Thanks for saving me some test time.

    Keith

  • edited November 2005
    Hi Keith,

    Yes, a TFrame interacts differently with RB as opposed to a TPanel or TForm.
    In the past it was known to be impossible to view a report on a TFrame but
    as I mentioned before this has not been recently tested. I do not believe a
    TTabSheet has ever been tested either.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.