Whenever any domestic corporation is a party to any legal proceeding in this state before any court or other lawful tribunal, every nonresident director, officer or agent of such corporation may be required to appear and testify in such proceeding within the state, or to give his deposition for use in such proceeding before a special commissioner or commissioners within or without the state, and to produce all books, records and papers of such corporation or relating to its affairs in his possession or control so far as the same may be material upon the question involved in such proceedings.
RSA 516:9
1903, 37:1. PL 336 :8. RL 392:8.