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

Design Reports at runtime.

edited November 2005 in General
Hi all.

I'd like to edit reports at runtime in an application I'm creating without
the need to use the RB Explorer.

Could I have some advices, please. I don't know how to do it.

Thanks.

Fabio.

Comments

  • edited November 2005
    Hi Fabio,

    Take a look at the "Code Based" thread in the TechTips newsgroup for
    numerous examples of createing reports and report objects in code. Also the
    ReportBuilder Developer's guide leads you through the complete process of
    creating a report completely in code.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2005
    Hi Nico, thanks for your reply.

    To get things a little bit clear I have to say that I didn't mean "Code
    Based Reports".

    This is my scenario for your knowledge.

    I have 1 (one) component of type "ppReport" and another one of type
    "ppDesigner" in a form. What I want to acomplish is loading a template from
    a file into "ppTemplate" component of the ppReport and then edit it within
    the ppDesigner component, of course connected to the ppReport component.

    This should be done at runtime, that's what I wanted to mean.

    I hope you or someone else could help me with this.

    Thanks again.

    Fabio.
  • edited November 2005
    Hi Fabio,

    Thanks for the further explaination.

    This can be done very easily by following the steps below...

    1. Set the TppDesigner.Report property to your report object.
    2. Load you template file into the report object using the
    TppReport.Template.FileName property, and TppReport.Template.LoadFromFile
    procedure.
    3. Call the TppDesigner.ShowModal to design the report at run-time.

    --
    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.