Insert image via PPT Add-In - image

I'm programming a PowerPoint Add-In in VBA. I want to have a button to insert the 'default company logo'. The logo is a vector image.
Is it possible to embed the image 'in the add-in itself'? Such that every user who has the add-in, doesn't need the logo file separately as image?

Unfortunately, PowerPoint add-ins contain only code, no slides, graphics or other content, so you can't embed the graphic in the add-in as a graphic.
You could probably add code to the add-in that writes the binary data for the logo graphic out to a file, insert from there, then delete the file (or leave it there for the next use).

Thanks for your responses! :)
I found a workaround which I like to share.
I converted the picture to an eps-file. Since the eps-file is text-based, I made a VBA-function in my add-in that writes the lines of the eps-image to a temporary text-file called img.eps. Now I can insert the image to my powerpoint slides by the add-in and delete the temporary eps-file.

Related

How to Insert svg images in PowerPoint?

I was able to add svg images into PPT so far, now suddenly unable to add them. when I add, it comes as internet explore icon with name of the image. anybody have any ideas why it changed suddenly? Is there any way without opening it in Illustrator and bring to ppt?
In the web version of PowerPoint you can drag and drop an SVG from your computer into a slide and it will be inserted as an image.
I've used the following workaround: import the SVG file into a LibreOffice Impress (it might look a bit ugly in LibreOffice, but don't worry), and then save this as a PowerPoint presentation.
When you open this file in PowerPoint, you'll find that your vector graphic will be correctly displayed.
Note that the feature to import vector graphics is included in Microsoft's subscription-based Office 365.

Outlook 2012 signature with image without attachment

I am trying to create an email signature in outlook 2010 with the company logo embedded.
As i am working my way trough this, i find it very strange that the included image is sent as an attachment.
It doesn't show as attachment on Outlook from other users. But it does on Mac, hotmail and so on..
I have already tried to include it via HTML, thus placing the image on a FTP and loading it from there, and i have tried including it trough the signature editor, both won't make it work..
Is there a code to make this function?
Why do you find it strange that the image is included as an attachment? Without it, there is no way for the recipient to view the image, as the email itself is text only. I imagine the only reason it doesn't show as an attachment in outlook is because outlook is smart enough to know that it's not a "real attachment" per se, but just the signature. Even then, I remember recieving signature images as attachments in older versions of outlook.
That said, it should be possible to use a linked image in your signature. This link explains how to do it.
Creating an Outlook signature with an image or picture located on the Internet requires changing Outlook’s behavior on how to deal with linked images and also adding the image in a specific way. Once the image is inserted, you can use the Signature Editor to turn the image into a hyperlink to a website.
Set Outlook to link to pictures instead of embedding them
The first step is to change Outlook’s behavior on how to deal with linked pictures. By default Outlook will embed them with the message, but this would mean that your picture would be a reflection of when you created the message instead of when the the recipient is reading (or even re-reading) your message.
Depending on how often you change your picture, this might be a non-issue but it would also mean that the picture gets added each time and thus making each message quite a bit larger. In several cases this could also result in your picture being added as an attachment and/or show the message with a paperclip icon.
These are all things that you should want to avoid; if not for you, then definitely for the recipient’s sake.
In Outlook 2003 and previous you can change this behavior via;
Tools-> Options…-> tab Mail Format-> button Internet Format-> option: When an HTML message contains pictures located on the Internet , send a copy of the pictures instead of the reference to their location.
In Outlook 2007 and 2010, this can behavior can only be changed via the Registry.
Key: HKEY_CURRENT_USER\Software\Microsoft\Office\\Outlook\Options\Mail
Value name; Send Pictures With Document
Value: 0
For more info about this registry key see; Where did "HTML options" go in Outlook 2007/2010?
Insert image as link
When inserting the image into your signature, you must again make sure that the image is linked. If you do not do this, then the current image will be downloaded and saved within your signature and wouldn’t update when you change it on-line.
Outlook 2003
Right click in the Signature Editor (do not use Advanced Edit) and choose; Insert Image…
Type the Internet address (URL) to the image in full when prompted for the Picture Source.
Click OK
Outlook 2007 and Outlook 2010
Click on the Picture icon in the Signature Editor
As the file name, type the Internet address (URL) to the image in full.
Instead of clicking on Insert, click on the little down arrow on the Insert button and choose; Link to File
Create a hyperlink
Once the image has been added, you can make it clickable and point it to a website via the the Hyperlink function.
Outlook 2003
Right click on the inserted image and choose; Edit Hyperlink
Outlook 2007 and Outlook 2010
Select the image and click on the Hyperlink icon
It seems to be more a matter of how the client displays it. Different clients are going to deal with the image in different ways, especially from a security standpoint. Have you tried linking to an image directly from the Web?
Here's some additional info:
http://www.howto-outlook.com/faq/imagesignature.htm

Outlook truncating images

I'm designing an e-mail template for a company and it tests great in everything besides Outlook. For some reason the bottom images of the email look like they're loading half way and then stop. I've found information online that Outlook won't load images with a height greater than 1728px, but the tallest image we have is much shorter than that. There are images beyond 1728px on the page that are loading just fine, so I'm not sure that's the issue. Does anyone have any experience with this? Any advice would be helpful.
Hi Here is a quick solution for this to be done in the outlook.
Use photoshop and follow this steps:
Once the design is over, slice up the image parts / height(1728px as per yout example).
Save this as, File->Save for web and device. click save. you will get option under save box
Under format change this to HTML and image from drop down.
Save them in one folder. A new HTML file and image file will be created in this folder.
Open this HTML file in a browser.
Just copy and paste the content in the outlook using a single cell table.
That's you are done. Now your image will load without any problem.

Can I save a DMBL layout as a jpeg/png?

Is it possible to save the layout diagram from a DBML file as a jpeg/png or any other image format?
A manager wants to know what we are storing in our database and the print out wasn't enough he wants an electronic version.
I know I can use a screen-shot but wonder if there are any other options? I've just thought about printing to a PDF printer as well. Still would be nice if there was a save to PNG
Thanks
If you are a MSOffice user, you can use Microsoft OneNote (copy diagram over there and then export it to a PNG), or you can use Snipping Tool, which is basically a nice tool for taking screen shots out of portions of the screen.
In the end I just used a PDF printer which worked quite nicely.

Inject Open XML into an Open PowerPoint Presentation

I'm looking for a way to inject PresentationML and/or DrawingML into an open PowerPoint 2007/2010 presentation using the Open XML SDK or just System.IO.Packaging. There is an article on doing this with Word, but in that example it is using the Range.XML routine in Word's object model, which I cannot find an equivalant for in PowerPoint's object model.
The reason I'm looking to do this is if I have an item on it that the PowerPoint client does not support editing of but that Open XML does (and as a result, PowerPoint will display it). I want to set this myself via a managed-addin (VSTO) on the open presentation. An example would be the underline of text (not that I'm looking for this, but it is an example) - in PowerPoint, you cannot make the underline of text a picture <a:blip/>, but in Open XML you can.
Does anyone know how to do this?
I am using both OpenXML SDK 2 and the Object Model to process presentations.
What I do, simplistic as it sounds, is to save the presentation, close it, perform all the XML modifications I need using OpenXML SDK, and then load the presentation back and continue with the Object Model.
Nope, according to Microsoft support: http://www.ureader.com/msg/10972430.aspx

Resources