Forum Moderators: open
I need to know what would be the best way to go about converting a dynamically created ASP page to a format where any user can save to their desktop. The final document would be protected for changes. So far I have it set up to where the user inputs the information into a form through the browser and then an ASP page outputs a Word document. The only problem that I find with this is that I cannot set the page margins for the Word Document and thus whenever the user would try to print the Word document it doesn't come out right. In addition, is there any way to create the Word document from a template or something? Finally, would PDF be a better solution and is there a free type of PDF solution?
But I'll admit it's not the ideal solution.
there are also PDF printing components which the user can purchase as needed, which allows the user to "print" directly to PDF. I've recommended this before and it really helps.
Formatting web pages to a specific format is difficult, but doable with patience.
Your input just gave me an idea that I think will probably work. I can just create the regular HTML page through the form that is handled through my ASP code. Then once the final HTML document has been created the user can "Print" to PDF using Adobe PDF Writer. Two birds killed with one stone. Easier for me and free for the client. No? Please provide your thoughts...
Axe
How To Use ASP to Generate a Rich Text Format (RTF) Document to Stream to Microsoft Word [support.microsoft.com]
It is more to do with automating Office than for a web app, but there might be some useful info in there for you.
<% Response.ContentType = "application/msword" %>
<% Response.AddHeader "Content-Disposition", "attachment;filename=FILENAMEHERE.doc" %>
Is this wrong or can it be controlled via the Word.Application object? How would I go about using the Word.Application in ASP?
Thanks for all the help...
Axe
Here's a link [msdn.microsoft.com] about it that I just found.
[devx.com...]