New Objects, Collections, and Enumerations
In this article
Publisher Developer Reference
New Objects and Collections
The following objects and collections are added to the object model in Microsoft Office Publisher 2007.
Attachment
Represents a document or link to a document contained in a publication.
Attachments
Represents the collection of Attachment objects that represent the attachments in an publication.
EmailMergeEnvelope
Represents the e-mail container (envelope) that holds the Microsoft Office Publisher document that is merged into an e-mail merge.
InstalledPrinters
Gets the names of all printers installed on the computer.
MailMergeDataSources
Represents the collection of all MailMergeDataSource objects in the active Microsoft Office Publisher document, each of which represents one of the data sources in a mail merge operation.
PageSize
Gets the page size of the current publication.
PageSizes
Represents the collection of all PageSize objects in the parent Document object, where each PageSize object represents one of the page sizes available in the current Microsoft Office Publisher document.
Printer
Corresponds to a printer available on your system.
New Enumerations
The following enumerations have been added to the object model in Microsoft Office Publisher 2007.
PbDriverType
Driver-type constants returned by the Printer.DriverType property.
pbEmailMergePriority
Constants for merged e-mail message priority passed to and returned by the EmailMergeEnvelope.Priority property.
PbFixedFormatIntent
Constants that specify the different formats in which you can print publications, passed to the ExportAsFixedFormat method.
PbFixedFormatType
Constants that specify fixed format types, passed to the ExportAsFixedFormat method.
PbMergeType
Constants that specify the type of mail merge, passed to and returned by the MailMerge.Type property.
PbPrintStyle
Constants that specify the print style, passed to the PrintOutEx and ExportAsFixedFormat methods.
PbRecipientListFileType
Constants passed to the MailMerge.ExportRecipientList method that specify the type of file in which to save an exported mail-merge recipient list.