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

Copy and Paste TppReport

edited September 2008 in General
For quite a while now there has been difficulty when copying and pasting
master detail reports so I can create a similar report with minimal effort -
however they mysteriously don't work properly. If this happens I usually
make a new report, copy all the bits across - all a bit tedious.
Last time this happened I decided to look in the form text.

While detail bands no longer have a DataPipeline property they do have in
the form and it does get set to a value. When you copy and paste the form
this value is taken with it. If you then assign new queries etc to the new
report it retains this old value which messes it up. The only way to fix it
is to edit the form text manually.

There may be other related problems with copy and paste but I havent had
time to look in more detail. If I'm right with the above perhaps this could
be fixed in a future release?

Regards
Paul

Comments

  • edited September 2008
    Hi Paul,

    An easier way to make a copy of a report would be to save it to file as a
    template, then load it in a new empty report object. The most efficient way
    of designing and storing multiple similar reports is to only have a single
    report object and load various saved templates on demand.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2008
    Hi Nico

    I understand what you are saying. I still think that if the object is
    copyable, like any other component, it should work. I assume the detail
    band pipeline property was depricated when the method for master detail
    reports was changed to using sub-reports. I guess that the datapipeline
    property was left in the form structure for backward compatibility - however
    Took a copy of report which could have been created a long time ago. It had
    the DetailBand.DataPipeline property.
    Connected to a new data pipeline. Now Subreport has new pipeline and detail
    band still has old pipeline. I suspect this is the state that causes
    problems (repeated detail data due to failed linking).

    Rebuilt & ran app.
    Now detailband datapipeline has gone!
    So it looks like the detail band doesnt require a DataPipeline property any
    more - but somwehere in the code tries to use it if it does have.

    When I was getting the problems with a copied report it could well have
    been in the report designer preview after copying and reconfiguring the
    report and running after recompiling but before doing a rebuild.

    Regards
    Paul

This discussion has been closed.