The problem with notepad is that it's not a COM server/container. You would be better off opening a Word document or Excel spreadsheet and writing to one of those. Your app knows about Word/Excel by setting a reference to each. AFAIK, you can't write directly to notepad. You would have to write to a file, then open the file in notepad in your application.