And as it turns out I have no idea how to put the code in those nice 
blocks, so you get a "quote block" instead   :P

On Thursday, February 21, 2013 2:06:46 AM UTC-6, Marcus F wrote:
>
> Here's a quick proof of concept using cfchart that works.
> It creates a jpg, saves it to a temporary folder, displays it using <img 
> src="">, creates the pdf, and deletes the temporary jpg.
>
> <cfprocessingdirective suppressWhitespace="true">
>>     <cfset destination = expandPath("test")>
>>     <cfchart name="myChart" format="jpg">
>>         <cfchartseries type="pie">
>>             <cfchartdata item="New Vehicle Sales" value=500000>
>>             <cfchartdata item="Used Vehicle Sales" value=250000>
>>             <cfchartdata item="Leasing" value=300000>
>>             <cfchartdata item="Service" value=400000>
>>         </cfchartseries>
>>     </cfchart>
>>
>>     <cffile action="write" file="#destination#/tmp.jpg" 
>> output="#myChart#">
>>     <cfdocument format="pdf" filename="#destination#/myChart.pdf" 
>> overwrite="Yes">
>>         <html>
>>             <head>
>>                 <title>Chart test</title>
>>             </head>
>>             
>>             <body>
>>                 <img src="test/tmp.jpg">
>>             </body>
>>         
>>         </html>
>>     </cfdocument>
>>     <cffile action="delete" file="#destination#/tmp.jpg">
>> </cfprocessingdirective>
>>
>

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to