473,387 Members | 1,464 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,387 software developers and data experts.

Automate Word - File In Use

Hi,
I'm attempting to automate word to load a document. I have no problem if
Word isn't loaded yet as creating a new Word.ApplicationClass() loads it for
me. However, there will be times when Word is already loaded and I want to
connect to that copy (and check whether the document is already loaded).

When Word is already loaded, creating a new Word.ApplicationClass() loads
another copy of Word and tries to load my document again. I then get an
error message telling me the file is in use.

I'm having some problems working out how to get the ApplicationClass if an
already running copy of Word... anyone know how I do that?

Thanks
Steve

Nov 17 '05 #1
1 1192
Sorry - wrong group - ignore me.

"Steve Barnett" <no****@here.please> wrote in message
news:ux****************@TK2MSFTNGP09.phx.gbl...
Hi,
I'm attempting to automate word to load a document. I have no problem
if Word isn't loaded yet as creating a new Word.ApplicationClass() loads
it for me. However, there will be times when Word is already loaded and I
want to connect to that copy (and check whether the document is already
loaded).

When Word is already loaded, creating a new Word.ApplicationClass() loads
another copy of Word and tries to load my document again. I then get an
error message telling me the file is in use.

I'm having some problems working out how to get the ApplicationClass if an
already running copy of Word... anyone know how I do that?

Thanks
Steve

Nov 17 '05 #2

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

Similar topics

1
by: haacked | last post by:
I am trying to automate the printing of an RTF file that contains watermark images in the header and am finding it very challenging. I looked at several articles about printing rtf docs using the...
1
by: mario | last post by:
Does anybody know if exist an help for microsoft word 10 object library?? I have to automate word from a visual c++ .NET solution. Tanks! Mario.
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
2
by: Steve Barnett | last post by:
Hi, I'm attempting to automate word to load a document. I have no problem if Word isn't loaded yet as creating a new Word.ApplicationClass() loads it for me. However, there will be times when Word...
0
by: Vijay Neelam | last post by:
How can I automate Microsoft Word from ASP.NET. My requirement is like this I have Datagrid with checkboxes... I need to export checkbox selected rows into Microsoft Word. I tried to...
0
by: Martin Feuersteiner | last post by:
Dear Group I wondered whether there's an ASP.NET example on how to automate word to perform a client-side mail merge? It looks like many people are asking the same question but haven't found a...
8
by: Vijay Neelam | last post by:
How can I automate Microsoft Word from ASP.NET. My requirement is like this I have Datagrid with checkboxes... I need to export checkbox selected rows into Microsoft Word. I tried to...
1
by: Vijay Neelam | last post by:
How can I automate Microsoft Word from ASP.NET. My requirement is like this I have Datagrid with checkboxes... I need to export checkbox selected rows into Microsoft Word. I tried to...
15
by: Karl | last post by:
Hi all, I regularly use FTP to place Self Extracting Zip files on the web for remote users to update their datafiles. Works very nicely. I have automated the creation of the initial zip file (...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.