1. Angela Ohlberger
  2. PowerBuilder
  3. Monday, 10 February 2020 15:16 PM UTC

Hi all,
Does anyone know if it is possible to save a datawindow or a graphic from Powerbuilder directly into a Powerpoint? I couldn't find a way in Powerbuilder and also no 3rd party tool achieving this requirement.

Thanks & regards

Angela

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 10 February 2020 21:21 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Angela;

1) Manually ... the good old ALT+PRTSCN

2) Code ... Clipboard() command in PB for text & graphics

3) Fully automated ...

 Use #2, then FindWindow () SDK function plus send PP a "paste" request via the PB SEND() command

4) OLE as per Miguel's suggestion.

Regards ... Chris

Comment
  1. Angela Ohlberger
  2. Tuesday, 11 February 2020 08:30 AM UTC
We should probably use OLE Automation.
  1. Helpful
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Monday, 10 February 2020 19:45 PM UTC
  2. PowerBuilder
  3. # 1

Miguel is right. You will need OLE Automation or some other technique to save DataWindow content to a PowerPoint slide. You will need to develop the save-as functionality yourself.

HTH /Michael

Comment
  1. Michael Kramer
  2. Monday, 10 February 2020 22:34 PM UTC
I used Windows' Snipping Tool (located in Start > Windows Accessories) for the featured article on RibbonBar controls. It cuts screen sections to the Windows clipboard. So it is good for writing documentation but less good for automated "save to PowerPoint" for end-users.

Link: https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/264-how-to-define-events-for-ribbonbar-controls.
  1. Helpful
  1. Angela Ohlberger
  2. Tuesday, 11 February 2020 08:21 AM UTC
That is the current workaround for the users (and for our documentation).
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 10 February 2020 15:23 PM UTC
  2. PowerBuilder
  3. # 2

Hi,

I guess that saving a dw into powerpoint will be difficult, but saving an image (not sure what you mean with "graphic"), should be possible using OLE.

Comment
  1. Angela Ohlberger
  2. Tuesday, 11 February 2020 08:07 AM UTC
Graphic means the graph object for different types of graphs, e.g. Pie, Bar or Area.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.