Skip to Content
avatar image
Former Member

Dynamic Insertion of graphics in Smart from

Hi guys,

I want to insert a dynamic graphic image from the presentation server into smart from its possible?

Reg,

Hriharan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 15, 2007 at 09:27 AM

    I have the same problem. I want to print a chart that was generated with CL_GUI_CHART_ENGINE with a SmartForm.

    The way to go I think is:

    - Save the chart.

    - Import the chart into GRAPHICS (like using SE78, this time automated)

    - Print that GRAPHICS object with SmartForms

    The chart is a kind of actual project overview. The name of that chart would be reused. The SmartForm can access a static graphics object.

    So the question is, how do I save a CL_GUI_CHART_ENGINE Chart to a file that can be imported as a SE78 form graphic. I found no method that provides this functionality.

    Importing the file object (BMP, PNG, or whatever) into GRAPHICS like in SE78 would be the next step but not a problem I think.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 21, 2007 at 09:29 AM

    The result using the cl_igs_chart_engine is on the way, but now I'm experiencing a hard backdrop.

    cl_igs_chart_engine generates a BMP graphics with a color depth of 16 bit.

    When I try to convert the BMP to BDS Format using the function SAPSCRIPT_CONVERT_BITMAP_BDS, I'm facing the fact that this function converts bitmaps with 1, 4, 8, 24 bit, but not with 16 or 32 bit 😕

    I'll have to find a way getting around that. If I can solve this problem, the problem to printing charts with SmartForms may be solved.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 22, 2007 at 07:16 AM

    Yesterday I found a way to go through.

    The solution is:

    - Use the IGS class cl_igs_chart_engine to produce a GIF of your chart.

    - Use the IGS class cl_igs_image_converter to convert that gif into a image/x-ms-bmp

    - Next, call function SAPSCRIPT_CONVERT_BITMAP_BDS to convert the BMP into a BDS table

    - then, save the BDS to graphics. To do that, use the coding like shown in the import function of SE78. I made an include file with 343 lines out of that.

    Ready.

    Now you can use a SmartForm graphics element to print out your chart beside other data.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi.

      Ernst, can You please tell me how to change the resolution?

      In my case it is counted automatically and gives me 75 DPI.

      I need more, but how ?

      THX. Luke.