All right,
Thank you Steve!
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> schrieb im Newsbeitrag news:O3**************@TK2MSFTNGP10.phx.gbl...
For that kind of functionality in a web application I'd have to recommend one of the 3rd party products I mentioned. They both support your requirements.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Daniel Walzenbach" <da**********************@freudenberg.de> wrote in message news:eb**************@TK2MSFTNGP12.phx.gbl...
Steve,
Thank you for your immediate answer. Could you please tell me what I would have to do if I wanted to use automation and be able to access some fields within a template? How would I have to declare those fields and how could they be accessed?
Thank you!
Daniel
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> schrieb im Newsbeitrag news:OI**************@TK2MSFTNGP10.phx.gbl...
This article demonstrates a number of techniques for generating Excel and Word documents.
http://www.aspnetpro.com/NewsletterA...200309so_l.asp
Here's a good 3rd party product you could use if you need to get really fancy:
http://www.aspose.com/Products/Aspose.Word/
And here's another:
www.officewriter.com
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Daniel Walzenbach" <da**********************@freudenberg.de> wrote in message news:uK**************@TK2MSFTNGP09.phx.gbl...
Hi,
I need to know how I could populate a word file from within ASP.NET and stream it out to some user (I can rely on all users have at least Word XP installed).
The preferable solution would be to have a word template on the server which is populated in the asp.net application and then streamed out to the user.
Also acceptable would be to open a template on the client's computer using automation and fill this file (if this is possible).
Does anybody know how this can be done? Which way would be preferable? Create the file on the server and streaming it out to the user or using automation to populate a file on the client's computer?
I know that it's possible to sent html to excel (via automation) which is then nicely rendered (like in the following example).
<script language="vbscript">
Sub Button1_onclick()
Dim sHTML
sHTML = window.Form1.children("DataGrid1").outerhtml
Dim oXL, oBook
Set oXL = CreateObject("Excel.Application")
Set oBook = oXL.Workbooks.Add
oBook.HTMLProject.HTMLProjectItems("Sheet1").Text = sHTML
oBook.HTMLProject.RefreshDocument
oXL.Visible = true
oXL.UserControl = true
end sub
</script>
Is there something similar possible with word? If
Thank you a lot for your help!
Daniel Walzenbach