Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Flex Charting - Generating PDF and Images

Avatar

Level 2
Is there any way with Flex Charting (or some 3rd party tool
integrated with Flex) to output a FlexChart as a PDF or an image
for inclusion in a report?
0 Replies

Avatar

Level 2


Yes there is.



Adobe® LiveCycle® Data Services ES
Developer’s Guide (PDF)

lcds_dev_guide.pdf



Chapter 17

Page 275



import mx.graphics.ImageSnapshot;



[Bindable]

public var balanceSheetImage:String;



private function generatePDF():void {

var snapshot:ImageSnapshot =

ImageSnapshot.captureImage(balanceSheet);

balanceSheetImage =
ImageSnapshot.encodeImageAsBase64(snapshot);

snapshot = ImageSnapshot.captureImage(earnings);

earningsImage = ImageSnapshot.encodeImageAsBase64(snapshot);

}

Avatar

Level 2
ok, and about the image? Are there any way to generate an
image from flex chart in the server-side?

Avatar

Level 1
Hi,

I want to save a flex page to PDF which consists of a chart
and a grid. I suppose LCDS can be used to do this, but I would like
to know alternatives without having to buy LCDS.



Thanks,

Leslie Francis

Avatar

Not applicable
@Leslie,



we use JasperReports for this purpose. Main reason was that
JasperReports is more flexible in report generation.



Ries