A
Andrew Cushen
Hi,
I'm not sure about using ASP.NET, but in VB6/VBA you would
put the line
Set oWordApplication = Nothing
after the line with oWordApplication.Quit(). Perhaps there
is something similar you can do with ASP.NET? This is a
very common question among beginning VBA/VB6 developers.
If you didn't know, NORMAL.DOT is the global template
which all Word docs are based on. The fact that you can't
delete it indicates, as you surmised, that Word is still
open. This is confirmed by the fact that you see
Winword.exe in the Task Manager.
HTH,
-Andrew
==============================================
but still the same problem.
ASP cannot quit the process.
but still the same issue.
delete it says "File in use"
I'm not sure about using ASP.NET, but in VB6/VBA you would
put the line
Set oWordApplication = Nothing
after the line with oWordApplication.Quit(). Perhaps there
is something similar you can do with ASP.NET? This is a
very common question among beginning VBA/VB6 developers.
If you didn't know, NORMAL.DOT is the global template
which all Word docs are based on. The fact that you can't
delete it indicates, as you surmised, that Word is still
open. This is confirmed by the fact that you see
Winword.exe in the Task Manager.
HTH,
-Andrew
==============================================
ByVal e As System.EventArgs) Handles Button1.Click-----Original Message-----
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,
the following lines carefully!")Dim oWordApplication As Word.Application
Dim oDoc As Word.Document
Dim strTemp As String
oWordApplication = New Word.Application
oDoc = oWordApplication.Documents.Add
oDoc.Activate()
oWordApplication.Selection.TypeText("Hi This My First Test Document")
oWordApplication.Selection.TypeParagraph()
oWordApplication.Selection.TypeText("Please resd
oDoc.Activate() line, I also tried all of the followingsoWordApplication.Selection.TypeParagraph()
oWordApplication.Selection.TypeText("Continue reading on the next page...")
oWordApplication.Selection.TypeParagraph()
oDoc.SaveAs ("E:\Inetpub\wwwroot\SampleWebApp\WebQA\MyFirstDoc1.doc")
oDoc.Close()
oWordApplication.Quit()
Label2.Text = " Word Doc is saved..."
End Sub
=====================================================
This error only occurs on the second time click on line
but still the same problem.
still running on the task manager and I cannot kill it.A- I noticed after the error the Winword.exe process
oWordApp object and oWordApp.Quit() the same issue I thinkB- I also tired a simpler version of the code create a
ASP cannot quit the process.
Machine.Config file of the .NET framework configurationC- I tried the same code on a Windows Form and it worked.
D- I tried to increase the TerminateTime = infinite on
but still the same issue.
error on my system drive (E:\Normal.dot) which I cannotE- I assigned Admin rights to ASPNET user but the same Issue.
F- I also noticed a file Normal.dot created after the
delete it says "File in use"