This content has been marked as final. Show 3 replies
If you want an exact reproduction of the displayed chart you can capture the display and send it to the server as a png or jpeg file. API for creating the PDF file depends of the server you use. Flex is only for the client side.
var bmp : BitmapData = new BitmapData ( chart.width, chart.height ) ;
bmp.draw ( chart ) ;
var png : ByteArray = PNGEncoder.encode( bmp ) ;
// here send png to your server....
Have a look to alivePDF which can create a PDF file from Flex on the client side.
Because of Flash Player security policy you will not be able to access to the file system and save the file localy.
thank for your reply,i am using php in server side, do yo have any example how to create the image in the server before send it back to the client.
I am facing similar kinda situation and wanting to save my chart in server. Did you get any code?