Link to home
Start Free TrialLog in
Avatar of o3h
o3h

asked on

.Net Word (docx) generation tool

Hi Im building a ASP.NET webapp. I need generate DOCX-files from code (not HTML).
Tips? Tutorials?
Avatar of Luis Pérez
Luis Pérez
Flag of Spain image

Use Office automation.

http://support.microsoft.com/kb/316383/en-us

Hope that helps.
ASKER CERTIFIED SOLUTION
Avatar of Dennis Aries
Dennis Aries
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You should never use Office Automation on a web server (it is a recommmandation of Microsoft).
You better use http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx
Welcome to the Open XML SDK 2.0 for Microsoft Office
"This content set provides documentation and guidance for the strongly-typed classes in the Open XML SDK 2.0 for Microsoft Office."

http://msdn.microsoft.com/en-us/library/bb448854.aspx 
Avatar of o3h
o3h

ASKER

My needs to generate PDFs too.
Is it possible to first generate to DOCx and then PDF (to make sure they look the same)?
Well... that's the theory. I've installed and used office automation in a web server. I've made automation for both Word and Excel applications without any major problem. It's true that in the very first days we had to deal with some many permission issues, but once resolved, all is OK until now.
>>Is it possible to first generate to DOCx and then PDF (to make sure they look the same)?
If you use Aspose.Words which I have proposed in your other question, it can save the document as a PDF also.
Avatar of o3h

ASKER

Ok, so I shouldnt use Office automation, and Aspose is to expensive.
More suggestions?