download rtf to user

G

GerryM

I have an asp page that creates an rtf string. If I use
Response.ContentType="application/msword"
Response.AddHeader "Content-Disposition","attachment; filename=Tablexx.rtf"
the page is downloaded, but all I get in MSWord is the rtf string, not the
page described by the rtf string.

What am I doing wrong?
 
G

GerryM

Never mind -- my fault. I had <html><body> before the rtf string. Removing
these (and the closing tags) made everything work just fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top