CFDOCUMENT. It works if you know how.
Many people have tried and few have succeeded using CFDOCUMENT to print their HTML.
For those that don’t know, here is how I’ve tamed the beast numerous times. Using these techniques you should be able to get CFDOCUMENT to print your HTML perfectly.
1) Your page must be valid XHTML 1.0 Transitional. Once you have created your HTML, run it against W3C’s validator and make sure it validates. So make sure to start your HTML with the following:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
2) Use @import to include your CSS. Don’t use the link tag, inline styles or a style block. It must be included with @import.
<style type=”text/css” media=”screen”>@import “style.css”;</style>
That’s it!!! How easy is that. I can bet you that just by doing these two things you can eleviate many of the headaches that you have getting CFDOCUMENT to print properly.
* Remember that border-collapse doesn’t work and there is currently no fix for it.