Erlotinib is usually taken orally in the form of a tablet. It is generally recommended to take it on an empty stomach, either 1 hour before or 2 hours after a meal. The dosage and treatment schedule depend on the type of cancer and the patient's overall health.