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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printable word report in ASP

Status
Not open for further replies.

yyl

IS-IT--Management
Mar 19, 2003
7
HK
I've tried to view an HTML file as a word document using
Response.ContentType = "application/msword"
and it looks fine using word2000 and word xp.
But in word97, I'm not able to view it.
Is there anyway that I can solve this?
 
do it as word97, 2k will convert it on opening it, only issue is if this is originally a word2k file, there may be some version differences, and you may need to save the document as a prior version
 
Let me explain more details! My meaning is the command is for ASP page, I have a page (report.asp), When I submit a page then there will be pop up the report.asp, and this report can view on office 2000, but in office 97 can't read and display the code of report.asp.
 
Instead of rendering HTML in your report.asp try rendering RTF (a very complex text based markup language). You will need to find an RTF standards manual somewhere.

If you render RTF it should work for ALL versions of Word.

That is one approach, take it or leave it.

TR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top