Skip to main content

Printing an MSCHART (mschrt20.ocx)

  • March 29, 2013
  • 10 replies
  • 0 views

Dominique Sacre
Forum|alt.badge.img+2

Hello Developers, 

Does anyone know hot to print an mschart?

10 replies

Stephen Hjerpe
  • Participating Frequently
  • March 29, 2013

Hello Developers, 

Does anyone know hot to print an mschart?

Is there a Print property in the def file?


Stephen Hjerpe
  • Participating Frequently
  • March 29, 2013

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.


Stephen Hjerpe
  • Participating Frequently
  • March 29, 2013

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


Dominique Sacre
Forum|alt.badge.img+2

Hello Developers, 

Does anyone know hot to print an mschart?

and then?


Dominique Sacre
Forum|alt.badge.img+2

Hello Developers, 

Does anyone know hot to print an mschart?

how? have any code exaple?


Dominique Sacre
Forum|alt.badge.img+2

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.


Stephen Hjerpe
  • Participating Frequently
  • April 1, 2013

Hello Developers, 

Does anyone know hot to print an mschart?

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


Dominique Sacre
Forum|alt.badge.img+2

Hello Developers, 

Does anyone know hot to print an mschart?

Can i just capture the MSChart control?


Dominique Sacre
Forum|alt.badge.img+2

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.


Dominique Sacre
Forum|alt.badge.img+2

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.