Send data from ASP file to word document

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gyanchand
    New Member
    • Jul 2007
    • 35

    Send data from ASP file to word document

    Hey All,

    Need to send data from an ASP file to a word document.....Ca n anyone help me with this
  • asdesigned
    New Member
    • Jul 2007
    • 3

    #2
    i've been using SoftArtisans OfficeWriter component and it works really well. Especially for mailmerging word documents on the fly

    Comment

    • christopherpond
      New Member
      • Jul 2007
      • 26

      #3
      How complicated is the page, If it is simple and you have the time you could always generate WordML? Obviously takes time to learn the syntax but if simple its not too bad.

      Comment

      • Gyanchand
        New Member
        • Jul 2007
        • 35

        #4
        Actually we need to use a Word template and insert cetain values through ASP. What I have done currently is : Have created a page in HTML and written the HTML to a text file and saved it as an doc file.

        strBody="<html> "
        strBody=strBody &"<head>"
        ........

        set sfile = objFS.createtex tfile(strPath, true)
        sfile.write(str Body)

        but in this case the problem is that we are not able to add headers/footers..Howeve r this is a temporary solution and I actually wanted to use the Word object to generate a word document.

        However, when i try to create an object of Word, the stmt results in an error saying :

        Set WordApp = CreateObject("w ord.application ")
        *Set WordDoc = WordApp.Documen ts.Add()

        *Error : "Microsoft Word (0x800A175D) Could not open macro storage."


        Can youplz. help me with this

        Comment

        Working...