Hi,
I open a word file using ShellExecute. But I have to know when the open file
is closed. How could I know this? Is it possible or not?
Thanks in advance,
Ruslan 4 1423
Using the Process and ProcessStartInf o classes in System.Diagnost ics you can
retrieve the process id after you are done, and you can monitor that process to
see when it has closed using the same classes. Specifically there is an Exited
event that you can hook.
--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers
"Ruslan" <ru*********@ho tmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. Hi, I open a word file using ShellExecute. But I have to know when the open file is closed. How could I know this? Is it possible or not?
Thanks in advance,
Ruslan
If you want something simple just right click the task bar then choose Task
Manager select Processes tag.
chanmm
"Ruslan" <ru*********@ho tmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. Hi, I open a word file using ShellExecute. But I have to know when the open file is closed. How could I know this? Is it possible or not?
Thanks in advance,
Ruslan
Hello, Ruslan!
You wrote on Wed, 3 Nov 2004 09:10:32 +0200:
R> Hi,
R> I open a word file using ShellExecute. But I have to know when the open
R> file is closed. How could I know this? Is it possible or not?
U may use word (office) automation (COM) for it
R> Thanks in advance,
R> Ruslan
With best regards, äÍÉÔÒÉÊ. E-mail: de*****@inbox.r .u
Hi Justin,
This technique will notify you when the WINWORD process has terminated but
not when the file was closed.
I have had a similar problem and have yet not found a solution (don't want
to go the COM automation route).
Regards
Joubert
"Justin Rogers" <Ju****@games4d otnet.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Using the Process and ProcessStartInf o classes in System.Diagnost ics you can retrieve the process id after you are done, and you can monitor that process to see when it has closed using the same classes. Specifically there is an Exited event that you can hook.
-- Justin Rogers DigiTec Web Consultants, LLC. Blog: http://weblogs.asp.net/justin_rogers
"Ruslan" <ru*********@ho tmail.com> wrote in message news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. Hi, I open a word file using ShellExecute. But I have to know when the open file is closed. How could I know this? Is it possible or not?
Thanks in advance,
Ruslan
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Martin Lucas-Smith |
last post by:
I am trying to use PHP's COM support to open a URL from within MS Word
then save the document.
I am using PHP5.0.3/Apache2/WindowsXP. phpinfo() confirms that COM support
is enabled.
Manually, this would be:
- Start MS Word (am using Office 2003)
|
by: Andrew |
last post by:
I'm adding this as it to me a while to figure out all the pieces to be
able to do this without using Microsoft.Office.Interop which caused me
problems on the web-server.
Streaming is the easy part, but I couldn't initially work out how to
manipulate the page setup to change page margins and orientation,
that's why I was looking at Microsoft.Office.Interop.
But with Microsoft.Office.Interop I couldn't fiure out how to stream
HTML...
|
by: Antoine De Groote |
last post by:
Hi there,
I have a word document containing pictures and text. This documents
holds several 'ABCDEF' strings which serve as a placeholder for names.
Now I want to replace these occurences with names in a list (members). I
open both input and output file in binary mode and do the
transformation. However, I can't open the resulting file, Word just
telling that there was an error. Does anybody what I am doing wrong?
Oh, and is this...
|
by: Peter |
last post by:
I have the following code which is executed from a modal web page - it works
fine on most, but on some computers the Word loads into memory but never
displays. This occurs with IE6 and IE7, but always works on FireFox.
When I close the modal web page Word disappears from Memory.
I don't know where the problem is, my code, IE setup or intranet security, I
also do not know where and for what to look for - I've tried Google but I
don't know...
|
by: Ang |
last post by:
Hi,
I want to open a word file on background instead of showing the process
on client's screen. And then do mailmerge, after that allow user to
saveas. (user simply click the button and IE will ask user to open or
save as the file)
Below is the code but I donno how to do it on background. It's an aspx
program, thanks.
| |
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |