AllowPNG Property

Microsoft PowerPoint Visual Basic

Determines whether PNG (Portable Network Graphics) is allowed as an output format when you save or publish a complete or partial presentation as a Web page. Read/write MsoTriState.

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse Default. PNG is not allowed as an output format when you save or publish a complete or partial presentation as a Web page.
msoTriStateMixed
msoTriStateToggle
msoTrue PNG is allowed as an image format when you save or publish a complete or partial presentation as a Web page.

expression.AllowPNG

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

If you save images in the PNG format as opposed to any other file format, you might improve the image quality or reduce the size of those image files, and therefore decrease the download time, assuming that the Web browsers you are targeting support the PNG format.

Example

This example enables PNG as an output format for the active presentation.

ActivePresentation.WebOptions.AllowPNG = msoTrue
		

Alternatively, PNG can be enabled as the global default for the application for newly created presentations.

Application.DefaultWebOptions.AllowPNG = msoTrue