Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Annoying problem when opening Word
Hi,
I "drive" MSWord through the "COM" interface in a VB.NET program. In the program, a Word object is created/opened (while hidden), which opens a template, where fields are filled with info from a database, and is printed. This works great, but when the end user opens Word, all the documents that were printed open as well. In the program, all documents are closed without saving changes and the Word object is destroyed. Does this have something to do with saving documents to the Normal.dot context? Is it possible for the end user to rename/delete the Normal.dot until this is resolved in the code? (I don't have access to the situation at the moment). Can anybody indicate how I might resolve this within the code. Private mWrd As Word._Application mWrd = New Word.Application mWrd.Visible = False ReportDoc = mWrd.Documents.Open(CStr(ReportDocName), Visible:=False) |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
apply a template to existing documents | Page Layout | |||
Does Word have Keyboard Merges like Word Perfect does? | Mailmerge | |||
Word2000 letterhead merge | Mailmerge | |||
Underscore (_) will not always display in RTF files (Word 2002). | Microsoft Word Help | |||
Locking Two Words Together to Make a Proper Compound Noun in Word | Microsoft Word Help |