Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

Export an image from Qlikview into Powerpoint and choose where to paste it

$
0
0
Hello everyone,

I'm trying to create a macro in Qlikview (reporting tool) to export graphs into powerpoint.

Here is the peace of code I use to open a powerpoint document and select the slide where I want to paste an image :

Code:

sub ppt1
 
Set PPApp = CreateObject("Powerpoint.Application")
PPApp.Visible = True ' Create a presentation
 
'Open the ppt document
Set PPPres = PPApp.Presentations.Open("D:\Qlikview_Data\presentation_test.pptx")
 
'Select the slide
Set PPSlide = PPPres.Slides(1)

And here the piece of code I use to paste the image :

Code:

ActiveDocument.GetSheetObject(charts(i).getobjectid).CopyBitmapToClipboard
PPSlide.Shapes.Paste

And the image is pasted in the middle of the slide. I would like to choose where in the slide I paste the image. How can I indicate the top and left corner in the code ?

Thanks for your help.

Viewing all articles
Browse latest Browse all 594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>