Share via


Document.PublicationType Property

Publisher Developer Reference

Returns a PbPublicationType constant that represents the type of the specified publication. Read-only.

Syntax

expression.PublicationType

expression   A variable that represents a Document object.

Return Value
PbPublicationType

Remarks

The PublicationType property value can be one of these PbPublicationType constants.

pbTypePrint
pbTypeWeb

Example

The following example determines if the active publication is a print publication. If it is, the publication is converted to a Web publication.

Visual Basic for Applications
  Sub ChangePublicationType()
    With ActiveDocument
        If .PublicationType = pbTypePrint Then
        .ConvertPublicationType (pbTypeWeb)
        End If
    End With
End Sub

See Also