you need the paper copy of the 1099-B that was mailed out, or permission from the institution for access granted to you as personal representative or executor.
even an account that is closed can be logged into for tax document retrieval purposes.
Some mutual fund companies won't talk to you, as I found from personal experience.