Forums
This topic is locked
ASP to Word doc
Posted 22 Mar 2005 19:32:44
1
has voted
22 Mar 2005 19:32:44 Ronan Donohoe posted:
I have an ASP page that I want displayed in Word. The page is a CV created from a DB record. Code to Activate Word:
###
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition", "attachment;filename=MyCV.doc"
###
For formating, the page uses 'invisble' tables. These unfortuanatly show up in Word. I have tried using CSS to create the page but positioning doesn't work when sent to word.
Is there a way of either
1. Not displaying the tables in Word
2. Using CSS in word to display a nicely formated page
Thanks for any help.
Replies
Replied 28 Mar 2005 19:38:58
28 Mar 2005 19:38:58 Dave Blohm replied:
I tried various methods, but the easiest is to add the following to your <head>
<style>
table,td,th{
border:0px #FFFFFF;
}
</style>
Hope this helps.
Doc
Rangewalk Digital Studios
<style>
table,td,th{
border:0px #FFFFFF;
}
</style>
Hope this helps.
Doc
Rangewalk Digital Studios