Where the deposition is to be Taken Within the State: A deposition within the state may be taken when the person to be examined is a party or an officer, or employee of a party within the county in which he resided or has an office for the regular transaction of business in person or where the action is pending.