cfdocument tag with cfchart in MX 7

Posted on 2005-05-14
Last Modified: 2013-12-24
I am getting an error message which I create a pdf with cfdocument tag thatcontains a chfchart tag.

Error Occurred While Processing Request  
The document has no pages.  
The error occurred in C:\websites\fbdrb9\cia\StyleMatrix6.cfm: line 465
463 :       <cfif VAVULCat10 EQ "Fixed"><cfchartdata item="#getFixedChartData.VAVUL10#" value="#getFixedChartData.VAVULAmount10#"></cfif>
464 :    </cfchartseries>
465 : </cfchart>
466 : </td></tr>
467 : </table>

 The charts themselves work.  When I try and wrap the entire template with cfdocument to produce a pdf, I get the above error.
Your help is appreciated.


Question by:jcpatterson
    LVL 12

    Accepted Solution

    Because CF builds the cfchart on the fly and it also builds the doc on the fly you cant put the both of them together.

    The only way I believe you could acheive this is to create the chart as a png - save it to disk, and then use the png in the cfdoc.
    LVL 1

    Author Comment

    Hi MMC,

    You have confirmed what I have been thinking.  I tried a basic image file in an html page and it just wouldn't work.  I have gone through the cfdocument tags thoroughly and cannot see how it can happen.  All of the documentation I have been reading says images can be included but there are no examples.  I tried using the image as a background image in the body tag because documentation says you can.  I couldn't get it to work though.

    I'm going to keep the question open to see if there are any other replies.  I asked the cfdjlist but noone has touched the subject.  Unless someones tells me different I will make sure you get the points.


    LVL 12

    Assisted Solution

    You should be able to put in images, this works for me.

    <cfdocument format="pdf">
    <img src="" />

    Put simply, you should be able to wrap almost any html in a cfdocument pdf and it should give you a pretty accurate representation of the page.

    The support for css is a bit dodgy, and also on some html markup.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Title # Comments Views Activity
    Mod rewrite 3 45
    BIND rate-limit - DNS for web server requests 29 94
    Two nodes for updates and forwarding 8 38
    Use System DSN 6 62
    A web service ( is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now