How to resign from current company

I am going to give 2 weeks notice. Do I type up a formal Word document letter, print it out, and sign it; or just send an email? Also who do I contact first, the VP or just the manager?