Skip to main content
Participating Frequently
May 8, 2013
Question

Problem getting style option on CFREPORT tag to work.

  • May 8, 2013
  • 1 reply
  • 509 views

I am trying to alter the report format at run time using the style option on CFREPORT.  I am actually trying to change the margins, but have tried everything I can think of.  So I copied the code right out of the documentation to change the color.  My code looks like

<cfreport template="Detail_rpt.cfr"

   query = "line" overwrite="yes" style='mystyle { defaultStyle: true;

    font-family:"Comic Sans MS"; color: ##993366; }' format = "pdf"   >

</cfreport>

However, the report color is not changed.  I figure if I can get color to work, I can then get the margins in place of it.  But the statement appears to make no changes.

Anyone got any ideas?  Have you ever gotten the style option to work?  If so, can you let me see your statement?

Help!

Thanks!

Dave

This topic has been closed for replies.

1 reply

Participant
July 30, 2013

Hi Dave -

Did you create a report style called mystyle in your cfreport?

I have added a style and modified it on the fly using the style option.