Problem solve Get help with specific problems with your technologies, process and projects.

Generating a Word document from VB

I'm developing a package in VB with MS Access. I want to generate a Word document from VB. It works nicely when I click the first time on the button. But when I click the second time, the document doesn't generate. Instead, it simply opens the empty document. I think this problem arises due to memory refresh. I don't know how to refresh the Word application from VB. I've tried many ways. Please help me.
I haven't worked with the word object from Dot NET yet, but worked with it quite a bit in VB6. I would try to destroy the instance of the word document before creating a new instance. If this doesn't get you going you should probably post this question on the Microsoft newsgroups where you should be able to get an answer from someone who is working with this interface on a daily basis.

Dig Deeper on Win Development Resources

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.