I have an AddIn that can run bunch of reports. It forms a nice customized reports that are exported to PowerPoint.
For instance, one of the reports runs Fit Y by X, runs linear fit, grabs R2 and Slope, displays then in a text box on a plot and deletes everything else (all the IfBoxes with Summary fits etc.)
I found that if a user has a customized configuration for a platform (for instance - run density ellipses by default with Fit Y by X), then all my logic of parsing display tree breaks and a) I can't get the results I need from display tree (because display tree is not what I expect) and b) unnecessary display boxes get in my final report.
Instead of checking for every possible combination of things that can be turned on by default in customized settings, is there a way to force a platform to run in default configuration?
Or maybe do this: Save current settings, apply default settings, run reports, apply saved settings back.
Any ideas?