The officer before whom depositions are taken shall have power to compel the production of papers, and the attendance of witnesses; and the same proceedings may be had to compel the attendance of witnesses, as are provided in the cases of taking depositions to be used in courts.
10 ILCS 5/23-15