A method of preparing a substantially planar microdevice comprising a plurality of reservoirs is provided. In general, the method comprises forming a plurality of microdevices comprising a plurality of reservoirs from a planar layer of a biocompatible polymer. The method also comprises depositing one or more bioactive agents into the reservoirs. The microdevice is configured to attach to a target tissue and release the bioactive agent in close proximity to the tissue.