"Sandy" <sa************@gmail.comwrote in message
news:11**********************@c51g2000cwc.googlegr oups.com...
I'm not sure how to add..That is what I's missing...
Ah, right...
Firstly, don't even think about using server automation with ASP.NET - it's
not supported by Microsoft, and will almost certainly cause you huge
problems sooner or later...
Basically, if you want to create and stream Word content with ASP.NET, there
are three ways:
1) Use HTML
Word, like Excel and PowerPoint etc, supports HTML as a file format...
a) Open up Notepad and copy the following text:
<html>
<head>
<title>I'm not really a Word doc, but I look like one</title>
</head>
<body>
Hello world!
</body>
</html>
b) Save the Notepad file with a .doc extension
c) Double-click on the file you just created - what happens...? Word
launches and displays the file just like a "real" Word document. The only
potential problem with this would be the images themselves, because you
can't embed images in HTML - that will mean that they will need to reside on
a webserver somewhere that your users can see...
2) Use XML
Word 2003 & 2007 supports the XML file format:
http://www.microsoft.com/downloads/d...displaylang=en http://www.microsoft.com/downloads/d...displaylang=en
ASP.NET and XML are "made for each other", so you can use the standard XML
namespace to create Word documents. However, even if you are fairly familiar
with XML, this can be quite difficult.
3) Use Aspose
http://www.aspose.com/Products/Aspos...s/Default.aspx
This is easy to use and very powerful, but not free... However, it will
allow you to embed the images into the Word document because it will create
true Word documents in the native Word file format...