Check the FAQ in the office forum.

Have you included the appropriate Microsoft.Office.Interop?