Share via


DefaultWebOptions.AllowPNG Property

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.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property AllowPNG As MsoTriState
    Get
    Set
'Usage
Dim instance As DefaultWebOptions
Dim value As MsoTriState

value = instance.AllowPNG

instance.AllowPNG = value
MsoTriState AllowPNG { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoTriState
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.

Examples

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

See Also

Reference

DefaultWebOptions Interface

DefaultWebOptions Members

Microsoft.Office.Interop.PowerPoint Namespace