Results 1 to 3 of 3

Thread: Response.ContentType = application/msword - Refuses SQL Query...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    The Netherlands
    Posts
    96

    Response.ContentType = application/msword - Refuses SQL Query...

    I'm compiling a Word Document form Data which is inside my SQL database....

    Everything goes allright...I can use...request.querystring, sessions, etc etc, inside the document.

    Whenever I start creating a Query to get some information...and try to insert it in my document it fails...Is this a common issue??

    <%@LANGUAGE="VBSCRIPT"%>
    <%
    ' changes MIME Type to open as MS-Word document file type
    Response.ContentType = "application/msword"
    Response.AddHeader "Content-Disposition", "attachment;filename=Documentatiebrief.doc"
    %>

  2. #2
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    Waht is a error message? How does it fail?

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Is the output of your ASP valid Word doc format?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width