If the witness is imprisoned in the county where the action or proceeding is pending, the witness's production may be required. In all other cases, the witness's examination, when allowed, must be taken upon deposition.
Mont. Code Ann. § 26-2-203, under Securing Testimony of Witness Who Is a Prisoner.
Mont. Code Ann. § 26-2-203
If the witness is imprisoned in the county where the action or proceeding is pending, the witness's production may be required. In all other cases, the witness's examination, when allowed, must be taken upon deposition.