neeraja

Server Side Exporting Fusion Charts To Pdf

Recommended Posts

Hi Experts,

 

I was trying to Export the rendered fusion chart reports to pdf but i am unable to do that i struck at configuring the export handlers. I am using FusionCharts_Evaluation for java and trying to configure following below steps..

 

1. Copied FCExporter.jsp file in web root folder

2.Export jars fcexporter.jar and fcexporthandler.jar in WEB-INF/lib and fusioncharts_export.properties in WEB-INF/classes folder.

3.Added exportEnabled=''1'' exportHandler=''/FusionCharts/FCExporter.jsp'' exportAtClient=''0'' exportAction=''save'' exportFileName=''MyFileName'' exportShowMenuItem=''1'' to the rendering xml

4.verified the version of column3D.swf and pie3D.swf those were 3.1.

 

 

I am able to render the chart successfully but i am not getting a progress bar saying capturing or nothing is happening that means i guess these handler classes are not called so nothing is happening please help me configuring i'm trying to configure this since 10 days.

 

I am attaching the required files please have a look and please help me ASAP.

 

Note: I am generating Column3D.xml dynamically using a procedure.

 

Thanks in Advance,

Neeraja Meka.

ExporttoPdf.zip

Share this post


Link to post
Share on other sites

Hi Neeraja,

 

Thank you for posting the xml and html.

 

I took a look at the version of the swf and it seems to be latest. Also, I am getting a capturing window when I initiate export.

 

Can you please try the Export example present in Download Package > Code > J2EE > ExportExample once?

 

See if that works.

 

Most likely, it is an issue with either

 

1. the path to the export handler (exportHandler attribute)

or

2. version of flash player - please check this

 

Hope this helps :)

Srividya Sharma

Share this post


Link to post
Share on other sites

Hi Srividya,

 

Thank you for the reply and i tried configuring like the sample application you provided in one of the posts but still am not able to see capturing box and also i guess no call is made to handler.

 

I do have small question, Do i need to place any button and on clicking that button only the generated report will be captured after generating the report ?? (For server side saving) .

 

Does it not save automatically when the report is rendered.

 

I am attaching my project structure and the needed files please have a look and path issues if any please let me know.

 

I am struggling with this since 15 - 20 days.

 

I am also attaching the application i referred to configure Export. (name FusionChartsExportApp)

 

Waiting forward for you reply !!

 

Thanks in Advance,

Neeraja Meka.

Configuration.zip

FusionChartsExportApp.zip

Edited by neeraja

Share this post


Link to post
Share on other sites

Hi Neeraja,

 

For server side export, you do not need a button click. It can be automatically exported after the chart renders.

 

Please incorporate automatic export after you achieve manual export.

 

I will take a look at the files you have attached and get back to you soon.

 

Srividya Sharma

Share this post


Link to post
Share on other sites

Hi All....

 

I have some problem here...

 

When I am exporting Fusion chart to PDF, its showing perfect in the PDF. i.e. the size is correct.

 

But, when i tried to take printout of the PDF, the Fusion Chart is very small in the printed document or the .xps file.

 

Plz help me out....I have spent a lot of time into it...

Share this post


Link to post
Share on other sites

Hey,

 

The PDFs rendered by FusionCharts Export Handler is 72 DPI in PDF.

 

The PDF viewer that you are using must have been set to a different Display Resolution (pixel/inch setting).

 

A higher value will show the chart bigger and blurred while a smaller value will reduce the chart size. Please set the Resolution to 72 to see the correct chart size.

 

Hope this helps.:)

Share this post


Link to post
Share on other sites

Fusion_chart_Print.pdfHi Swarnam,

 

Thanks a lot for ur reply...

 

I tried with 72 DPI, and its showing two fusion charts on the printout. One vary small and other with proper size.

 

When i made DPI to 300 and took printout, it's showing one chart with correct size, but the numbers on the chart are very small and blurred.

 

I have Fusion_chart_Print.pdf attached the original PDF.

 

plz guide.....

 

 

 

Nilesh Attargekar.

Share this post


Link to post
Share on other sites
Guest Sumedh

Fusion_chart_Print.pdfHi Swarnam,

 

Thanks a lot for ur reply...

 

I tried with 72 DPI, and its showing two fusion charts on the printout. One vary small and other with proper size.

 

When i made DPI to 300 and took printout, it's showing one chart with correct size, but the numbers on the chart are very small and blurred.

 

I have Fusion_chart_Print.pdf attached the original PDF.

 

plz guide.....

 

 

 

Nilesh Attargekar.

 

 

 

Hi Nilesh,

 

Can you please elaborate your procedure of exporting the charts into PDF?

Share this post


Link to post
Share on other sites

Hi Sumedh,

 

Actually, I have created Fusion chart in Jasper iReport and published it on Jasper Server.

 

JasperServer has an option to export Fusion report into PDF.

 

I could successfully export fusion chart on PDF.

 

But, when i am trying to print that PDF containing fusion chart, it doesn't get printed in full size.

 

Plz suggest.

 

 

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi Sumedh,

 

Actually, I have created Fusion chart in Jasper iReport and published it on Jasper Server.

 

JasperServer has an option to export Fusion report into PDF.

 

I could successfully export fusion chart on PDF.

 

But, when i am trying to print that PDF containing fusion chart, it doesn't get printed in full size.

 

Plz suggest.

 

 

 

 

Hi,

 

Can you send us the screen-shot of your issue?

 

 

Share this post


Link to post
Share on other sites

Hi,

 

Can you send us the screen-shot of your issue?

 

 

 

Hi, I have the same issue, does anyone know if it was resolved, and what the conclusion was.

 

regards

Share this post


Link to post
Share on other sites
Guest Sumedh

Hey,

 

Can you explain how you are trying to export charts using Jasper iReport?

 

Also send us the screen-shot.

Share this post


Link to post
Share on other sites

Hey,

 

Can you explain how you are trying to export charts using Jasper iReport?

 

Also send us the screen-shot.

 

I have same issue when printing PDF that export by JasperServer, below is my steps that use Fusion Maps and Fusion Charts.

 

 

 

Step1: Create report using Fusion Maps and Fusion Charts in Jasper iReport.

 

Step2: Upload the report file to JasperServer and execute the report.

 

Step3: Export the report as PDF (Refer to 001.jpg).

 

Step4: Open the exported PDF with ‘Adobe Reader X’ and set resolution to 72 DPI (Refer to002.jpg).

 

Step5: Print the PDF file by ‘Microsoft XPS Document Writer’ (Refer to 003.jpg).

 

Step6: Open the printed xps file by ‘XPS Viewer’ (Refer to 004.jpg).

 

 

 

The map and chart size is smaller than it in the PDF file, any advice about it?

 

 

 

 

Best regards,

snapshot.zip

Edited by Nicholas

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now