|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Error creating big Word docs in asp.netHello!
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? 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 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?
Other interesting topics
ASP.NET image - remove border attribute (c#)
Httphandler redirection to document -- GetCompiledPageInstance dropdowncontrol problem trying to show images in the grid Page Expired Warning effecient template system Form based security using frames Storing Enums in web.config Instantiate UserControl without LoadControl Restarting IIS after installation of a new Webapplication |
|||||||||||||||||||||||