Skip to main content

Hello Developers, 

Does anyone know hot to print an mschart?

Hello Developers, 

Does anyone know hot to print an mschart?

Is there a Print property in the def file?


Hello Developers, 

Does anyone know hot to print an mschart?

If there isn't a print property .. with 9.0 and above you can use XML extensions to take the values in your chart and create a HTML (XML) chart.


Hello Developers, 

Does anyone know hot to print an mschart?

I tried to find examples of how to do this ... what I found is that you need to copy the chart to the Windows clipboard and then print from there. There is an example of using the clipboard within COBOL here: community.microfocus.com/.../6143.aspx


Hello Developers, 

Does anyone know hot to print an mschart?

and then?


Hello Developers, 

Does anyone know hot to print an mschart?

how? have any code exaple?


Hello Developers, 

Does anyone know hot to print an mschart?

the code youre giving paste text to the clipboard, but i need some more complex. I must take all the control of active x (mschrt20.ocx) to paste it into clipboard.


Hello Developers, 

Does anyone know hot to print an mschart?

You can do an entire screen capture within COBOL .. community.microfocus.com/.../6805.aspx


Hello Developers, 

Does anyone know hot to print an mschart?

Can i just capture the MSChart control?


Hello Developers, 

Does anyone know hot to print an mschart?

ok i found it

          INQUIRE Sr10-MSC-1 SYSTEM HANDLE IN CHART-BMP.

          CALL    "W$BITMAP"       USING

                  WBITMAP-CAPTURE-IMAGE

                  "C:\\A.BMP"

                  CHART-BMP.

     *             0

     *             1

     *             24.

     *Load bitmap

          CALL    "W$BITMAP"       USING

                  WBITMAP-LOAD

                  "PRINTFORM.BMP"

                  GIVING           PRTSCR-BMP.


Hello Developers, 

Does anyone know hot to print an mschart?

Sr10-MSC-1 is a MSChart control. I did it from the code you send me.