Search code examples
vb6ms-worddocumentdoc

document template in vb6?


I'm making a vb6 project which deals with printing. I'm going to print some receipt and promissory note. Can I make a MS-Word (.doc) document file template, so that when I'm going to print the receipt and PN, I'll just have to open the .doc file and fill up the blank spaces on it.

Sorry for asking such question.

Thanks for the replies.


Solution

  • You should be able to get this done by using the Word Object library in VB6. You will need to add a reference to it in your project. It's called 'Automation' because you will be causing an instance of Word to open via your VB6 code.

    See this article for more details: http://support.microsoft.com/kb/313193