Section 284 in The Code of Criminal Procedure
Title: When attendance of witness may be dispensed with and commission issued
(1) Whenever, in the course of any inquiry, trial or other proceeding under this Code, it appears to a Court or Magistrate that the examination of a witness is necessary for the ends of justice, and that the attendance of such witness cannot be procured without an amount of delay, expense or inconvenience which, under the circumstances of the case, would be unreasonable, the Court or Magistrate may dispense with such attendance and may issue a commission for the examination of the witness in accordance with the provisions of this Chapter:
Provided that where the examination of the President or the Vice-President of India or the Governor of a State or the Administrator of a Union territory as a witness is necessary for the ends of Justice, a commission shall be issued for the examination of such a witness.
(2) The Court may, when issuing a commission for the examination of a witness for the prosecution, direct that such amount as the Court considers reasonable to meet the expenses of the accused, including the pleader's fees, be paid by the prosecution
Title: Commission to whom to be issued
(1) If the witness is within the territories to which this Code extends, the commission shall be directed to the Chief Metropolitan Magistrate or the Chief Judicial Magistrate, as the case may be, within whose local jurisdiction the witness is to be found.
(2) If the witness is in India, but in a State or an area to which this Code does not extend, the commission shall be directed to such Court or officer as the Central Government may, by notification, specify in this behalf.
(3) If the witness is in a country or place outside India and arrangements have been made by the Central Government with the Government of such country or place for taking the evidence of witnesses in relation to criminal matters, the commission shall be issued in such form, directed to such Court or officer, and sent to such authority for transmission as the Central Government may, by notification, prescribed in this behalf.
Title: Execution of commissions
Upon receipt of the commission, the Chief Metropolitan Magistrate, or Chief Judicial Magistrate or such Metropolitan or Judicial Magistrate as he may appoint in this behalf, shall summon the witness before him or proceed to the place where the witness is, and shall take down his evidence in the same manner, and may for this purpose exercise the same powers, as in trials or warrant-cases under this Code.
Title: Parties may examine witnesses
(1) The parties to any proceeding under this Code in which a commission is issued may respectively forward any interrogatories in writing which the Court or Magistrate directing the commission may think relevant to the issue, and it shall be lawful for the Magistrate, Court or officer to whom the commission, is directed, or to whom the duty of executing it is delegated, to examine the witness upon such interrogatories.
(2) Any such party may appear before such magistrate, Court or Officer by pleader, or if not in custody, in person, and may examine, cross-examine and re-examine (as the case may be) the said witness.
Title: Return of commission
(1) After any commission issued under section 284 has been duly executed, it shall be returned, together with the deposition of the witness examined thereunder, to the Court or Magistrate issuing the commission; and the commission, the return thereto and the deposition shall be open at all reasonable times to inspection of the parties, and may, subject to all just exceptions, be read in evidence in the case by either party, and shall form part of the record.
(2) Any deposition so taken, if it satisfies the conditions prescribed by section 33 of the Indian Evidence Act, 1872 (1 of 1872), may also be received in evidence at any subsequent stage of the case before another Court.