• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

css in cfdocument

Explorer ,
Apr 20, 2012 Apr 20, 2012

Copy link to clipboard

Copied

Hi

my code below is working fine except the css didn't work if i have scope="row" in report.cfm page.  if  i removed that line, then the front size worked fine, otherwise, it was small.  I always have td scope in the cfm page with css with those style and it worked fine, but don't know if scope has something to do with cfdocument?

thanks

========================

report.cfm

<cfif form.submit neq "">

<cfsavecontent vairable="session.report">

<td scope="row">My Report</td>

</cfsavecontent>

#session.report#

</cfif>

<a href=pdf.cfm">view pdf</a>

==================

pdf.cfm

<cfset request.theReport = session.report />

<cfdocument format="pdf" orientation="landscape" marginRight=".5" marginLeft=".5">

<style>

body, table, th, td {font: normal normal normal 15px/normal, Arial;

</style>

<cfoutput>

#request.theReport#

</cfoutput>

</cfdocument>

TOPICS
Getting started

Views

1.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2012 Apr 23, 2012

Copy link to clipboard

Copied

Include all the HTML table tags, table, tr, th, and so on, in report.cfm.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 23, 2012 Apr 23, 2012

Copy link to clipboard

Copied

It just an example, but ofcouse i have all table tags in my report.cfm

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2012 Apr 23, 2012

Copy link to clipboard

Copied

LATEST

Could you then reproduce the code as close as possible to the version in which the error occurs? Just to rule out the obvious. I cannot tell you the number of threads I have participated in, where more than 20 posts had passed before the original poster realized he had simply put a dot in the wrong place.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation