Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Code Printing in Word

Status
Not open for further replies.

FrankenMonkey

Programmer
Aug 22, 2003
4
US
Hi, I'm using an asp page, with ContentType = "application/msword", to query data from an Access Database to create a Word doc. The data is returned fine. Word opens up. The data is in the doc. The problem is that the html is printed in the doc rather than formatting the text. Any clues how I can fix this so the doc uses the html to format?
 
Did you try doing all the html with response.write's instead?
Not sure if that helps...
 
Yeah, I'm using response.write statements. I'm at a total loss as to why this isn't working. I currently have a group of pages that submit .hmtl to an .asp page with content/type set to excel and it works perfectly. I tested my new page (that's supposed to open a word doc) by submitting the form to the current Excel version that works and it still prints the html coding in the .xls file even though all the other pages submitting to that page uses the html to format the text. So in essence, I have two different pages submitting to the same page, and one prints the html while the other processes it. Granted, I want to do a word doc version of this download page, but right now I just want to understand why data from one page is displayed differently than data from another page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top