Forum Moderators: open
1- You pick a person
2- You get a list of the tests that person took, and pick which one you want to see the report of
3- The report data is harvested from the database, and a nice pretty report is created
4- There is a button at the bottom that you can click to have the report exported to a Word document that you can save for all posterity.
Now, what I do is this: When the HTML for the report is generated in step 3 above, I put it all into a form variable to pass to the page that creates the Word doc. I did this so that when they ask me to make other reports exportable, I can use the same code to create the Word document and just pass it the report results for whatever report I want.
The code on the page that creates the Word doc looks like this:
Response.Buffer = True
Response.ContentType = "application/vnd.ms-word"
Response.AddHeader "content-disposition", "inline; filename = DevelopmentPlan.doc"
%>
<html><head></head><body>
<%
Response.Write Request.Form("strReport")
%>
</body></html>
And it works famously MOST of the time.
The problem is, that SOMETIMES anyplace I have an nbsp the word doc displays "á" instead. But it doesn't happen every time.
Any ideas why this might happen? I'd appreciate any thoughts at all!
Thanx!
-Moz