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

Undo will not work after Preview

edited January 2007 in End User
In RB 10.04 end-user report design:

- I make a change.
- I check that Edit > Undo item exists (e.g. Undo:4).
- I Preview my change and switch back to the Design tab.
- The Undo item no longer exists.

As a result, I cannot use Preview to test my changes before committing
to them.
--

Comments

  • edited January 2007

    It is working as designed. Prior to Preview, the report layout is saved to
    an internal memory stream and then restored upon return from Preview. (Upon
    Preview, the RAP code can run during report generation and in doing so can
    modify the report layout.)

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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited January 2007
    Nard Moseley (Digital Metaphors) wrote:



    Why not save and restore the history at the same time then? The preview
    is mainly used to see if things were correct. Not being able to use the
    history feature after a preview makes it a lot less useful.

    Jan Derk
  • edited January 2007
    Jan Derk wrote:




    Come to think of it some more: When doing a preview would it be a good
    idea to copy the design time report structure and use that for the
    preview?

    Then RAP would never interfere with the Designer, you would not have to
    save and load the report to a memory stream and the history would keep
    working.

    Jan Derk
  • edited January 2007

    Thanks for the feedback.

    The original scope and design, did not include persisting the Undo History.
    Perhaps we can add that feature to a future release.

    Copying the report structure is probably not a viable option. A report can
    reference other objects, particulary data access components that reside on
    the same form/datamodule and thus have the same Owner. Thus a copy of
    report, will need the same Owner as the original report, opps - now name
    collisions with the original report will occur.

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

    Best regards,

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