Reply
 
Thread Tools Display Modes
  #1   Report Post  
Bill S.
 
Posts: n/a
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apply a template to existing documents Bubba Gump Shrimp Page Layout 2 July 28th 05 04:46 PM
Does Word have Keyboard Merges like Word Perfect does? Donnas Mailmerge 1 June 28th 05 09:30 PM
Word2000 letterhead merge BAW Mailmerge 3 June 25th 05 01:17 PM
Underscore (_) will not always display in RTF files (Word 2002). David A Edge Microsoft Word Help 6 June 14th 05 10:39 AM
Locking Two Words Together to Make a Proper Compound Noun in Word WorkingWoman Microsoft Word Help 2 April 7th 05 02:33 PM


All times are GMT +1. The time now is 07:02 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"