I'm having an issue with cfdocument not loading my style sheets.

here is my cfm page took the tag bracket off so it would show.
I've tried linking to the style sheet but that didn't work either.

If I change the class= to inline styles it works fine but this would be a pain 
since we have a few reports that I was trying to make sure the layout would be 
the same.

cfoutput
cfdocument
    format="pdf"
    filename='c:\inetpub\wwwroot\dds\Troys\test.pdf'
    pagetype = "letter"
    overwrite="yes"
    
style type="text/css"
    @import url("./dds/css/metrics2.css");
/style
table class="ReportTable2"
    tr
        td class="ReportHeaderCell2" Test /td
    /tr
/table

/cfdocument
/cfoutput

here is the css file
td.ReportHeaderCell2 { 
    border-bottom:1px solid #000000;
    border-right:1px solid #000000;
    background-color:#FF0000;
    font-family:Verdana;
    font-size:11px;
    color:#FFFFFF;
    text-align:center;
    vertical-align:middle;
    font-weight:bold;
    padding:2px 2px 2px 2px;
}
table.ReportTable2 {
    border:1px solid #000000;
    margin:0 5px 10px 5px;
}

if I load this with out the cfdocument tag it load fine with red background and 
a black border. but as soon as I create the pdf the formating disappears.
we are using CF7

any help on this would be great.. Thank you in advance.

Thank You
Troy Montour

 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285587
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to