How to restore a reports original design?
Hi !
I have a ppReport on a form and I've designed it as _I_ like it. I don't
want to save it in a template file but keep it stored within the .exe
file. In my application I allow the users to load a template to the same
ppReport. The user can now preview their own template, but they might
get disappointed and want to switch back to my design. How do I in
runtime without quitting the dialog form then "load" my designed report
stored in the ppReport back again (it's stored a an object - the help says).
-Kurt
I have a ppReport on a form and I've designed it as _I_ like it. I don't
want to save it in a template file but keep it stored within the .exe
file. In my application I allow the users to load a template to the same
ppReport. The user can now preview their own template, but they might
get disappointed and want to switch back to my design. How do I in
runtime without quitting the dialog form then "load" my designed report
stored in the ppReport back again (it's stored a an object - the help says).
-Kurt
This discussion has been closed.
Comments
before showing the designer. Then, if the user is unhappy with his/her own
design you can restore the original one by reloading the template from the
stream. The example below shows how to modify the report designer to provide
the end user a menu option that will accomplish this task.
http://www.digital-metaphors.com/tips/RevertReportTemplate.zip
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com