Get results HTML path/filename through code

The following post describes how to create a custom report.
I guess that @Russ_Thomas did something like this.