Automatic Letter generation
-
Hi, Can anyone tell me how to generate a letter automatically in ASP.Net? I need to fill in the date and employee name for each letter that is generated. The content of the letter will be the same for all employees. The letter template is a word document. thanks in advance, Krish
-
Hi, Can anyone tell me how to generate a letter automatically in ASP.Net? I need to fill in the date and employee name for each letter that is generated. The content of the letter will be the same for all employees. The letter template is a word document. thanks in advance, Krish
If your users have Word2003, you can use native Word XML. In Word, save your template in xml with the name template.aspx. Add the file to the project, scriplet-it so that fields became value expressions (something like <%=emplName%>). Set content type to "application/msword" and the content-disposition to "attachment; filename='letter.doc'" hope this helps ;) ---------------------- !happy coding!
-
If your users have Word2003, you can use native Word XML. In Word, save your template in xml with the name template.aspx. Add the file to the project, scriplet-it so that fields became value expressions (something like <%=emplName%>). Set content type to "application/msword" and the content-disposition to "attachment; filename='letter.doc'" hope this helps ;) ---------------------- !happy coding!
The text of the letter contained some parameters coming from the screen and others coming from the database. How do I pass all the parameters to the template? Can you suggest some websites links as am new to xml and scripting. thanks in advance Krish -- modified at 0:41 Thursday 16th March, 2006