One of the tips I learned from Dean Harmon of Adobe was to try to make
your pages "complete" web pages. By that he meant (if I rememeber
right), use everything you would in a normal HTML page: TItle, Head,
Body, etc.

I'm not saying it will work, but give it a try.

On 8/7/07, Troy Montour <[EMAIL PROTECTED]> wrote:
> 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
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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

Reply via email to