Howdy Anatoly,
Just read through your article, "Recreating the Capital Gains Report" and tried Installing the script so I could make some modifications for my specific use.
However, upon restarting PSM, I got a Script Error box stating "Name redefined (00000000)" ... see screen capture below.
So, I went into Tools / Extensions, UNinstalled the existing report extension, "Capital Gains Report 1.0.7 (Extended Capital Gains Report)", and saw that MY extension, which I had installed prior to restarting PSM, was in fact installed as well.
So, I UNinstalled it and then reinstalled it, shut down PSM and restarted PSM.
When starting up, PSM still shows the same Script Error box. However, the box now shows the built-in extension report as the one in error. I'm assuming this is due to the uninstall / reinstall procedure ... I uninstalled the built-in extension, installed MY extension, and then when PSM starts, it tries to auto-reinstall the built-in report extension AFTER mine is already installed?
So, the question became, what exactly did I need to change in your "Recreating the Capital Gains Report" VBS code so this "Name redefined (00000000)" error will quit showing up and allow both the built-in report AND my new report to exist in PSM at the same time?
Through a lot of trial and error, I found the following changes had to be made in order to differentiate the built-in report with the one I wanted to add, in the Tools / Extensions display, in the Report selection list, and internally to PSM (the Class names) ...
OLD: <pss_extension min_pss_version="7.1" name="Capital Gains Report" version="1.0.0">Extended Capital Gains Report
NEW: <pss_extension min_pss_version="7.1" name="New Capital Gains Report" version="1.0.0">New Extended Capital Gains Report
OLD: ' Capital gains report for Personal Stock Streamer
NEW: ' New Capital gains report for Personal Stock Streamer
Replace every occurrence of the Class name "CapGainsInfo" with "NewCapGainsInfo"
Replace every occurrence of the Class name "CapGainsReportHandler" with "NewCapGainsReportHandler"
OLD: ReportManager.Register "Capital Gains (Extended)", ReportHandler
NEW: ReportManager.Register "New Capital Gains (Extended)", ReportHandler
For everyone else who would like to use your code as starting point for creating their own Capital Gains Report extension, would it be possible for you to change your code in the article and code posting?
Thank you very much Anatoly,
-Don

Script Error Box