473,407 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Problem with Normal.dot while opening a word application in vb.ne

I want to display the content of a word document in a text box when the
filename is highlighted on a listbox.
i used the following code to do it:

Dim app As Word.Application
app = New Word.ApplicationClass()
Dim nullobj As Object
nullobj = System.Reflection.Missing.Value
Dim strFileDisplay As Object
Dim doc As Word.Document
doc = app.Documents.Open(lstResult.SelectedItem, nullobj, True, nullobj,
nullobj, nullobj, nullobj, nullobj, nullobj, nullobj, nullobj, nullobj)
doc.ActiveWindow.Selection.WholeStory()
doc.ActiveWindow.Selection.Copy()
doc.ActiveWindow.Close()

The target is accomplished completely.

The 2nd target is when u double click the filename(.doc), the file shd be
opened in MS Word.
This is also acheived.

But the problem is when it is run on client machine, it gives the following
problem:

when u highlight a filename on the listbox;
"u get the message “file is in use by another application or user,
(C:\Documents and setting\...\normal.dot)”. Then it opens a box to save the
file and launches an instance of MS Word.

If you double click on the file you can eventually open it, but Word opens a
dialog box that says “changes have been made that affect the global template,
Normal. Do you want to save those changes?”. "

What needs to be done to fix this?
Plsssssssssss help.....
Alto

Nov 21 '05 #1
0 1274

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Morgan | last post by:
I am using the following link to download a file of about 50k <a target= "_blank" href="http://www.bsecs.org.uk/ExecDocs/documentStore/elfridaWord.doc">open file</a> If I save the file to...
3
by: John | last post by:
Hi I am using the code given at the end to open a word document from within vb.net. It works fine the first time but the second time I get the error; Unhandled Exception:...
7
by: mkorch17 | last post by:
Hello, I have a server with a Word document and an Access database on it. I also have an ASP page running on the server. The Word document contains a mail merge with the Access database. What...
2
by: BerkshireGuy | last post by:
I want to open a word document from an Access form and transfer data from the Access form to the Word Document. For instance, if a user clicks an option box on my access form, I want to pass...
3
by: Csaba Gabor | last post by:
If I do not have the indicated Word document open (on my Win XP Pro machine with PHP 5.2), the following will open and display it: <?php $path = "c:\\path\\to\\word\\document\\mydoc.doc"; $doc...
0
by: anuj13singhal | last post by:
Hi, I am trying to open a word document on the client machine. the document is present on the oracle application server (on windows). For that I have created a java class file wordbean.class....
4
by: active | last post by:
How do you do things like the following with Option Strict On Dim ColSuggestions As Word.SpellingSuggestions Dim WordApp As Object = New Word.Application Dim WordDoc As New Word.Document
0
by: Shat T. Cat | last post by:
Hello, I have a program that I originally wrote in VB6 that breaks down plain-text Profit & Loss reports from my organization's Accounting system into separate files for each Cost Center (office...
9
by: smugcool | last post by:
hi, I am having a problem while providing more control while opening word..Below is the code where i am able to open the file. in this code when somebody clicks on command2 button a input box opens...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.