Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Automatic Letter generation

Automatic Letter generation

Scheduled Pinned Locked Moved Web Development
csharpasp-nettutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krish_Learner
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • K Krish_Learner

      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

      S Offline
      S Offline
      sgatto159
      wrote on last edited by
      #2

      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!

      K 1 Reply Last reply
      0
      • S sgatto159

        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!

        K Offline
        K Offline
        Krish_Learner
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups