Hi,
I'm trying to write an ASP.NET page using VS.NET 2003, Office 2003, Win 2000
but I keep gettin this error:
"The message filter indicated that the application is busy" this is the code.
=============== =============== =============== ========
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
Dim oWordApplicatio n As Word.Applicatio n
Dim oDoc As Word.Document
Dim strTemp As String
oWordApplicatio n = New Word.Applicatio n
oDoc = oWordApplicatio n.Documents.Add
oDoc.Activate()
oWordApplicatio n.Selection.Typ eText("Hi This My First Test Document")
oWordApplicatio n.Selection.Typ eParagraph()
oWordApplicatio n.Selection.Typ eText("Please resd the following lines carefully!")
oWordApplicatio n.Selection.Typ eParagraph()
oWordApplicatio n.Selection.Typ eText("Continue reading on the next page...")
oWordApplicatio n.Selection.Typ eParagraph()
oDoc.SaveAs("E: \Inetpub\wwwroo t\SampleWebApp\ WebQA\MyFirstDo c1.doc")
oDoc.Close()
oWordApplicatio n.Quit()
Label2.Text = " Word Doc is saved..."
End Sub
=============== =============== =============== ========
This error only occurs on the second time click on line oDoc.Activate() line, I also tried all of the followings but still the same problem.
A- I noticed after the error the Winword.exe process still running on the task manager and I cannot kill it.
B- I also tired a simpler version of the code create a oWordApp object and oWordApp.Quit() the same issue I think ASP cannot quit the process.
C- I tried the same code on a Windows Form and it worked.
D- I tried to increase the TerminateTime = infinite on Machine.Config file of the .NET framework configuration but still the same issue.
E- I assigned Admin rights to ASPNET user but the same Issue.
F- I also noticed a file Normal.dot created after the error on my system drive (E:\Normal.dot) which I cannot delete it says "File in use"
Conclusion: My ASP.NET application cannot terminate the Word process!
Can anyone give me some other suggestions?
Thank you. 1 9633
mtermoul wrote: Hi, I'm trying to write an ASP.NET page using VS.NET 2003, Office 2003, Win 2000 but I keep gettin this error: "The message filter indicated that the application is busy" this is the code. =============== =============== =============== ======== Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click Dim oWordApplicatio n As Word.Applicatio n Dim oDoc As Word.Document Dim strTemp As String oWordApplicatio n = New Word.Applicatio n oDoc = oWordApplicatio n.Documents.Add oDoc.Activate() oWordApplicatio n.Selection.Typ eText("Hi This My First Test Document") oWordApplicatio n.Selection.Typ eParagraph() oWordApplicatio n.Selection.Typ eText("Please resd the following lines carefully!") oWordApplicatio n.Selection.Typ eParagraph() oWordApplicatio n.Selection.Typ eText("Continue reading on the next page...") oWordApplicatio n.Selection.Typ eParagraph() oDoc.SaveAs("E: \Inetpub\wwwroo t\SampleWebApp\ WebQA\MyFirstDo c1.doc") oDoc.Close() oWordApplicatio n.Quit() Label2.Text = " Word Doc is saved..." End Sub =============== =============== =============== ======== This error only occurs on the second time click on line oDoc.Activate() line, I also tried all of the followings but still the same problem. A- I noticed after the error the Winword.exe process still running on the task manager and I cannot kill it. B- I also tired a simpler version of the code create a oWordApp object and oWordApp.Quit() the same issue I think ASP cannot quit the process. C- I tried the same code on a Windows Form and it worked. D- I tried to increase the TerminateTime = infinite on Machine.Config file of the .NET framework configuration but still the same issue. E- I assigned Admin rights to ASPNET user but the same Issue. F- I also noticed a file Normal.dot created after the error on my system drive (E:\Normal.dot) which I cannot delete it says "File in use" Conclusion: My ASP.NET application cannot terminate the Word process! Can anyone give me some other suggestions?
Thank you.
I've done some similar work in C#, and ran into similar problems when I
was passing a System.Reflecti on.Missing class reference for most of the
parameters. Try passing some values in the oDoc.Close() method or the
oWordApplicatio n.Quit() method to get it to work. The parameters refer
to things like "Save" and whatever. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Google Mike |
last post by:
I need an Application object replacement. I was creating my own using
shared memory -- shm* API in PHP. I was doing fine for 6 months until
it just got too fat, I guess, and the RH9 Linux server just started
"losing its memory". I don't know -- perhaps I'm doing something
wrong, perhaps it's my code, or perhaps there's a limitation on what
I'm trying to do here. It's too many lines of code to debug right now.
I'm searching for...
|
by: Don Stevic |
last post by:
I am running VS2005 and using VSTO for Word.
I keep getting this error saying that there is no source code available for
this location when I try and run this application.
I am going to try and reinstall Office 2003 and see if that fixes this, but
it is talking about the mscorlib.dll and that isn’t Office.
|
by: Malcolm Cook |
last post by:
I've discovered:
Using "File > Print Preview" in a form's datasheet view with a server Filter
crashes access after previewing...
....that is, unless ServerFilterByForm has been turned off after applying the
filter.
See the steps to recreate bug below for details.
|
by: Brian Keating EI9FXB |
last post by:
Hello again,
I've already placed a few posts on this topic.
This time i've a simple application that exhibits my problem,
I've placed sample solution 8k on my website should anyone be interested in
having a look. http://briankeating.net/transfer/test.zip
To recap the problem I expected (and found).
I've a main GUI thead (main form), this GUI thread has an UpdateTextBox
function that appends a string in a textbox and It also has a button...
|
by: Dave Weber |
last post by:
I'm in the process of writing an open-source plugin-enabled application.
I know that you can define the API in several ways, and right now it
is equipped as an Interface.
The gist of the functionality, is when a timer expires, the app will
notify the plugins that it's time for them to do their work. Now, the
plugins may take an indeterminate period of time (e.g.: they have
nothing to do, or they have a few seconds of work to do).
...
| |
by: szilvaa |
last post by:
Hi there,
The .NET Framework developer's guide claims that one can filter
managed exceptions in C++.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconusinguser-filteredexceptions.asp
However, I don't see how I get access to the managed exception object.
The unmanaged EXCEPTION_POINTERS* is completely useless since I want
to get to the InnerException property of the System::Exception.
|
by: bq |
last post by:
When I automate Word application in ASP .NET as below:
Dim wordApp As Word.ApplicationClass
..
..
wordApp = New Word.ApplicationClass()
..
..
When the ASP.NET runs at the above line, it creates an error, say:
|
by: Domino |
last post by:
Hi
Trying to automate word. Works well on dev box using vs.net (c#). When I
deploy it to production I get hit by this error
"message filter indicated that the application is busy"
Word is called and each time the page is loaded another instance of Word is
called, which I have to kill via task manager.
|
by: mtermoul |
last post by:
Hi,
I'm trying to write an ASP.NET page using VS.NET 2003, Office 2003, Win 2000
but I keep gettin this error:
"The message filter indicated that the application is busy" this is the code.
=====================================================
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oWordApplication As Word.Application
Dim oDoc As Word.Document
Dim strTemp As String...
|
by: Jean Stachler |
last post by:
We have a VB app that is set off automatically when a file exists in a certain directory. The file contains a listing of part numbers which the program reads and than retrieves drawings which are in a .pdf format from another directory for each of these part numbers. The drawings are printed in the background using Adobe Acrobat. The problem is that now one of our locations is getting the following message appearing on the screen "This action...
|
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: 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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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: 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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |