Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Created a pdf file showing a graph generated with CL_GUI_CHART_ENGINE

Former Member
0 Kudos

Hi Experts!

Please, anyone has already created a pdf file showing a graph generated with CL_GUI_CHART_ENGINE??

Could anyone help me with this requirement?

Thanks in advance,

Best regards

8 REPLIES 8

Former Member
0 Kudos

Hi,

Please refer to this wiki link

http://wiki.sdn.sap.com/wiki/display/Snippets/CreatingchartsinSimpleABAP+Programs

Hope this would help you.

former_member182485
Active Contributor
0 Kudos

Hi,

You can show graph in the screen but printing using Smartform or even the latest adobe form does not support.

I am also serching solution of this problem for long but still did not get and did a work around ,

If you find a solution kindly let me know.

Regards

Bikas

Former Member
0 Kudos

ok,

thanks for your responses,

I'm searching as well.

if I get an solution I'll tell you.

thanks

Former Member
0 Kudos

Hy,

thanks a lot for your answers,

I got a solution following these steps:

http://tknight.org/sdn/show/24225

best regards

0 Kudos

Hi,

I have the same problem as you. How do you get the data of the chart out of the chart object (cl_gui_chart_engine)?

On the solution you have found, smart form were used to show the graph on pdf, do know if there is any possibility to show the the graph on adobe forms?

Best regards

0 Kudos

Hi,

I searched and found another solution, because with the code from the link above I got everytime a short dump, maybe I did something wrong.

The solution works with Adobe Form

1. I used the class cl_igs_chart_engine to create a chart with my data and customizing to get the binary data of the image.

2. Convert the binary tab to xstring.

3. You can use this xstring on the Adobe Form to display the image.

Maybe the following tips are useful.

*How to get the data of chart you can see in the class

CL_TIME_CHART_SIMPLE (use cl_gui_chart_engine for the chart but class cl_igs_chart_engine for saving the image)

*How to bind the image to the importing parameter (xstring)

/people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development

Regards

0 Kudos

Hello Ronaldo,

I have similar requirement.

The link yo mentioned is not working now. Can you please help me ?

Thank you very much for your help !

0 Kudos

Hi Florian,

Can you please confirm if we have to use

- class CL_TIME_CHART_SIMPLE or

cl_gui_chart_engine for the chart but  class cl_igs_chart_engine for saving the image

Thank you for your help !

Best Regards,

harish Bhatt