Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Exported shapes as image with vba in powerpoint with a white peace in the button and top

$
0
0

I want to export certain shapes in powerpoint as images. For that I am using the following code:

ActivePresentation.Slides(1).Shapes(3).Export "C:\dink_template\created_files\testimg.jpg", ppShapeFormatJPG

I also tried with other image formats:

 ActivePresentation.Slides(1).Shapes(3).Export "C:\dink_template\created_files\testimg.png", ppShapeFormatPNG

and I get this image:

enter image description here

Here you cannot notice because the white peace that appears in the image button (and also a bit in the top) is mixing with the page but if you make inspect element on the photo you will see it.

As you can see in this other image in powerpoint the shape fix perfectly and it is not bigger that the image:

enter image description here

Why is appearing this white peace in the top and in the button? How can I export the image without them?


Viewing all articles
Browse latest Browse all 2257

Trending Articles