Dynamically generate a MS Word document using ASP.Net
-
How we can Dynamically generate a MS Word document using ASP.Net? Jijo kuruvila software developer trivandrum
-
How we can Dynamically generate a MS Word document using ASP.Net? Jijo kuruvila software developer trivandrum
hi, I was going to make an article about it;) I suppose you have Word2003, ASP.NET1.1 and VS.NET2003. It may be ok with lesser verions. try some of folowing steps: 1)read MSDN - especially this[^] 2)download & install Office PIA[^] 3)reference PIA in ur project 4)run Start->ControlPanel->AdministrativeTools->ComponentServices 5)ComponentService->Computers->MyComputer->DCOMConfig find "Microsoft Word Document" and set permissons for user ASPNET 6) use Word's object to generate document... see MSDN hope it helps, I got stuck on it for a while some time ago :( best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)
-
How we can Dynamically generate a MS Word document using ASP.Net? Jijo kuruvila software developer trivandrum
I can't forget these articles on CP, it may help you as well. (But they don't use PIA and lack some details, that's why I want to make another article ) http://www.codeproject.com/cs/miscctrl/winwordcontrol.asp[^] http://www.codeproject.com/aspnet/wordapplication.asp[^] David Never forget: "Stay kul and happy" (I.A.)
-
hi, I was going to make an article about it;) I suppose you have Word2003, ASP.NET1.1 and VS.NET2003. It may be ok with lesser verions. try some of folowing steps: 1)read MSDN - especially this[^] 2)download & install Office PIA[^] 3)reference PIA in ur project 4)run Start->ControlPanel->AdministrativeTools->ComponentServices 5)ComponentService->Computers->MyComputer->DCOMConfig find "Microsoft Word Document" and set permissons for user ASPNET 6) use Word's object to generate document... see MSDN hope it helps, I got stuck on it for a while some time ago :( best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)
As I said in my reply (BTW, John, please hit "Submit" only once and please delete duplicate posts in the future), you must be careful using Word on a multi-threaded server application ASP.NET. It is not recommended. The caller is responsible for thread-safety in many cases. Some solutions will use pessimistic concurrency to ensure thread safety (letting only one caller run at a time and queuing the rest) and that will degrade performance becanse your multi-threaded application all of a sudden acts like a single-threaded process. Depending on your requirements, using XHTML with the right ProgID processor instruction or the Word 2003 XML Schema will allow you to use a 100% managed solution and still generate content that Word would have no problem with (and in the case of the Word 2003 XML schema - you can do everything Word can do generating a 100% compatible Word Document). This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]