WebOptions.AllowPNG Property (PowerPoint)
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.
Syntax
expression .AllowPNG
expression A variable that represents a WebOptions object.
Return Value
MsoTriState
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.
The value of the AllowPNG property can be one of these MsoTriState constants.
Constant |
Description |
---|---|
msoFalse |
The default. PNG is not allowed as an output format when you save or publish a complete or partial presentation as a Web page. |
msoTrue |
PNG is allowed as an image format when you save or publish a complete or partial presentation as a Web page. |
Example
This example enables PNG as an output format for the active presentation.
ActivePresentation.WebOptions.AllowPNG = msoTrue
Alternatively, you can enable PNG as the global default for the application for newly created presentations.
Application.DefaultWebOptions.AllowPNG = msoTrue