Home All Groups Group Topic Archive Search About

Error creating big Word docs in asp.net

Author
7 Jun 2005 2:12 PM
Meken
Hello!

I have developed a function which create a word doc. It works fine for
smaller amount of text but when I want to create larger documents something
goes wrong!

The application stops at this line:
oWordDoc.SaveAs(ref fileName, ref missing, ref missing, ref missing, ref
missing,     ref missing, ref readOnly, ref missing, ref missing, ref missing,
ref     missing, ref missing, ref missing, ref missing, ref missing, ref
missing);
with the error message:
The message filter indicated that the application is busy.
How can I work around this problem? Is there any way to check if the
application is busy?

Author
8 Jun 2005 6:08 AM
Steve C. Orr [MVP, MCSD]
COM automation to Word, such as you're doing, is not recommended from
ASP.NET.

Instead you could use one of these techniques:
http://SteveOrr.net/articles/ExportPanel.aspx
http://SteveOrr.net/Articles/ExcelExport.aspx

If you have more advanced needs, I'd recommend going with a 3rd party
component, such as one of these:
http://www.SteveOrr.net/Reviews/AsposeWord.aspx
http://officewriter.softartisans.com/officewriter-189.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


Show quoteHide quote
"Meken" <Me***@discussions.microsoft.com> wrote in message
news:46414A52-BDDC-4297-B638-4D1BC49F200B@microsoft.com...
> Hello!
>
> I have developed a function which create a word doc. It works fine for
> smaller amount of text but when I want to create larger documents
> something
> goes wrong!
>
> The application stops at this line:
> oWordDoc.SaveAs(ref fileName, ref missing, ref missing, ref missing, ref
> missing, ref missing, ref readOnly, ref missing, ref missing, ref missing,
> ref missing, ref missing, ref missing, ref missing, ref missing, ref
> missing);
> with the error message:
> The message filter indicated that the application is busy.
> How can I work around this problem? Is there any way to check if the
> application is busy?

Bookmark and Share