RE: emailing a cfchart?

2012-02-21 Thread DURETTE, STEVEN J

Actually in a way you can. Generate the charts as files, then use cfmailparam 
to include the files. 

Create a variable that holds the fileinformation:
cfset LocationAndFileName = getTempFile(getTempDirectory())  .png /

Generate your chart as a variable and then save it:
cfchart format=png name=chartName ... .../cfchart
cfset fileWrite(#LocationAndFileName#, chartName) /

The cfmailparam code looks like this:
cfmailparam contentID=makeAnID file=#LocationAndFileName# 
disposition=inline /

Then in your html code for the email have:
img src=cid:makeAnID /

It will include it inline.

Steve


-Original Message-
From: Les Irvin [mailto:les.cft...@gmail.com] 
Sent: Monday, February 20, 2012 7:30 PM
To: cf-talk
Subject: emailing a cfchart?


Is it possible to have cfchart code (format=png or jpg) within a
cfmail tag and have the graphic actually show up in the email? I can't
seem to manage it...
Thanks in advance for any help,
Les



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349990
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: emailing a cfchart?

2012-02-21 Thread Dave Watts

 I haven't had a chance to check this, but does CF10 no longer provide the
 ability to generate static images for charts?

 It looks like everything is canvas or Flash-based, which is going to be
 problematic for emailing or using in a PDF--both of which I use.

I don't know, honestly, but I suspect you could capture the output
generated by either of those, using CFHTTP for example.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350002
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: emailing a cfchart?

2012-02-21 Thread Raymond Camden

CF10's charting support has both the old way and the new hot way, so
you can still do server side charting.


On Tue, Feb 21, 2012 at 11:08 AM, Dave Watts dwa...@figleaf.com wrote:

 I haven't had a chance to check this, but does CF10 no longer provide the
 ability to generate static images for charts?

 It looks like everything is canvas or Flash-based, which is going to be
 problematic for emailing or using in a PDF--both of which I use.

 I don't know, honestly, but I suspect you could capture the output
 generated by either of those, using CFHTTP for example.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350018
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: emailing a cfchart?

2012-02-20 Thread Dave Watts

 Is it possible to have cfchart code (format=png or jpg) within a
 cfmail tag and have the graphic actually show up in the email? I can't
 seem to manage it...

Not directly, by default, because what CFCHART generates is a
time-limited URL to a servlet that produces the image, rather than an
actual image file. You can use the NAME attribute of CFCHART to
generate a CF variable that contains the image, store that to a file,
then serve that instead.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349984
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: emailing a cfchart?

2012-02-20 Thread Dan G. Switzer, II

Dave,

I haven't had a chance to check this, but does CF10 no longer provide the
ability to generate static images for charts?

It looks like everything is canvas or Flash-based, which is going to be
problematic for emailing or using in a PDF--both of which I use.

Any idea?

-Dan

On Monday, February 20, 2012, Dave Watts wrote:


  Is it possible to have cfchart code (format=png or jpg) within a
  cfmail tag and have the graphic actually show up in the email? I can't
  seem to manage it...

 Not directly, by default, because what CFCHART generates is a
 time-limited URL to a servlet that produces the image, rather than an
 actual image file. You can use the NAME attribute of CFCHART to
 generate a CF variable that contains the image, store that to a file,
 then serve that instead.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349985
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm