Application Object Members

Publisher Developer Reference

Represents the Microsoft Office Publisher application. The Application object includes properties and methods that return top-level objects. For example, the ActiveDocument property returns a Document object.

Methods

  Name Description
Aa437544.methods(en-us,office.12).gif CentimetersToPoints Converts a measurement from centimeters to points (1 cm = 28.35 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif ChangeFileOpenDirectory Sets the folder in which Microsoft Office Publisher searches for documents. The specified folder's contents are listed the next time the Open Publication dialog box (File menu) is displayed.
Aa437544.methods(en-us,office.12).gif EmusToPoints Converts a measurement from emus to points (12700 emus = 1 point). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif Help Displays online Help information.
Aa437544.methods(en-us,office.12).gif InchesToPoints Converts a measurement from inches to points (1 inch = 72 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif IsValidObject Determines whether the specified object variable references a valid object and returns a Boolean value: True if the specified variable that references an object is valid, False if the object referenced by the variable has been deleted.
Aa437544.methods(en-us,office.12).gif LaunchWebService Launches the Microsoft Office eServices Portal.
Aa437544.methods(en-us,office.12).gif LinesToPoints Converts a measurement from lines to points (1 line = 12 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif MillimetersToPoints Converts a measurement from millimeters to points (1 mm = 2.835 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif NewDocument Returns a Document object that represents a new publication.
Aa437544.methods(en-us,office.12).gif Open Returns a Document object that represents the newly opened publication.
Aa437544.methods(en-us,office.12).gif PicasToPoints Converts a measurement from picas to points (1 pica = 12 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif PixelsToPoints Converts a measurement from pixels to points (1 pixel = 0.75 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif PointsToCentimeters Converts a measurement from points to centimeters (1 cm = 28.35 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif PointsToEmus Converts a measurement from points to emus (12700 emus = 1 point). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif PointsToInches Converts a measurement from points to inches (1 in = 72 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif PointsToLines Converts a measurement from points to lines (1 line = 12 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif PointsToMillimeters Converts a measurement from points to millimeters (1 mm = 2.835 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif PointsToPicas Converts a measurement from points to picas (1 pica = 12 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif PointsToPixels Converts a measurement from points to pixels (1 pixel = 0.75 points). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif PointsToTwips Converts a measurement from points to twips (20 twips = 1 point). Returns the converted measurement as a Single.
Aa437544.methods(en-us,office.12).gif Quit Quits Microsoft Office Publisher. This is equivalent to clicking Exit on the File menu.
Aa437544.methods(en-us,office.12).gif ShowWizardCatalog Displays the Publication Types catalog for the wizard of the specified type.
Aa437544.methods(en-us,office.12).gif TwipsToPoints Converts a measurement from twips to points (20 twips = 1 point). Returns the converted measurement as a Single.

Properties

  Name Description
Aa437544.properties(en-us,office.12).gif ActiveDocument Returns a Document object that represents the active publication. If there are no documents open, an error occurs.
Aa437544.properties(en-us,office.12).gif ActiveWindow Returns a Window object that represents the window with the focus. Because Microsoft Publisher only has one window, there is only one Window object to return.
Aa437544.properties(en-us,office.12).gif Application Used without an object qualifier, this property returns an Application object that represents the current instance of Publisher. Used with an object qualifier, this property returns an Application object that represents the creator of the specified object. When used with an OLE Automation object, it returns the object's application.
Aa437544.properties(en-us,office.12).gif Assistance Gets a reference to the Microsoft Office (MSO) IAssistance object, which provides a means for developers to create a customized Help experience for users within Microsoft Office. Read-only.
Aa437544.properties(en-us,office.12).gif Assistant Returns an Assistant object that represents the Microsoft Office Assistant.
Aa437544.properties(en-us,office.12).gif AutomationSecurity Specifies the security mode that Microsoft Office Publisher uses when programmatically opening files. Read/write.
Aa437544.properties(en-us,office.12).gif Build Returns a Long that represents the Microsoft Office Publisher build number. Read-only.
Aa437544.properties(en-us,office.12).gif ColorSchemes Returns a ColorSchemes collection that represents the color schemes available.
Aa437544.properties(en-us,office.12).gif COMAddIns Returns a COMAddIns collection that represents a reference to the Component Object Model (COM) add-ins currently loaded in Microsoft Office Publisher.
Aa437544.properties(en-us,office.12).gif CommandBars Sets or returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Office Publisher.
Aa437544.properties(en-us,office.12).gif Documents Returns a Documents collection that represents all open publications. Read-only.
Aa437544.properties(en-us,office.12).gif FileDialog Returns a FileDialog object which represents a single instance of a file dialog box.
Aa437544.properties(en-us,office.12).gif InsertBarcodeVisible Determines whether Add a postal bar code is available under More Items on the Mail Merge and Catalog Merge task panes in the Microsoft Office Publisher user interface (UI); and whether Add postal bar codes is available under Prepare for Mailing on the Publisher Tasks task pane in the Publisher UI. Read/write.
Aa437544.properties(en-us,office.12).gif InstalledPrinters Gets the names of all printers installed on the computer and to which the application can print the publication. Read-only.
Aa437544.properties(en-us,office.12).gif Language Returns a Long that represents the language selected for the Microsoft Office Publisher user interface. Read-only.
Aa437544.properties(en-us,office.12).gif Name Returns a String value indicating the name of the specified object. Read-only.
Aa437544.properties(en-us,office.12).gif OfficeDataSourceObject Returns an OfficeDataSourceObject object representing the data source in a mail merge or catalog merge operation. Read-only.
Aa437544.properties(en-us,office.12).gif Options Returns an Options object that represents application settings you can set in Microsoft Office Publisher.
Aa437544.properties(en-us,office.12).gif Parent Returns an object that represents the parent object of the specified object. For example, for a TextFrame object, returns a Shape object representing the parent shape of the text frame. Read-only.
Aa437544.properties(en-us,office.12).gif Path Returns a String indicating the full path to the file of the saved active publication, not including the last separator or file name.
Aa437544.properties(en-us,office.12).gif PathSeparator Returns a String that represents the character used to separate folder names. Read-only.
Aa437544.properties(en-us,office.12).gif PrintPreview True to display in Print Preview the publication in the current view. Read/write Boolean.
Aa437544.properties(en-us,office.12).gif ProductCode Returns a String indicating the Microsoft Office Publisher globally unique identifier (GUID). Read-only.
Aa437544.properties(en-us,office.12).gif ScreenUpdating Returns or sets a Boolean indicating whether Microsoft Office Publisher refreshes the screen display during run time; True to refresh the screen display. Read/write.
Aa437544.properties(en-us,office.12).gif Selection Returns a Selection object that represents a selected range or the insertion point.
Aa437544.properties(en-us,office.12).gif ShowFollowUpCustom Gets or sets the string, if any, that appears as the fourth item under Prepare to follow-up on this mailing on the third Mail Merge task pane in the Microsoft Office Publisher user interface. Read/write.
Aa437544.properties(en-us,office.12).gif SnapToGuides True for Microsoft Office Publisher to use the guides to align objects on a page in a publication. Read/write Boolean.
Aa437544.properties(en-us,office.12).gif SnapToObjects True for Microsoft Office Publisher to use objects on a page to line up other objects. Read/write Boolean.
Aa437544.properties(en-us,office.12).gif TemplateFolderPath Returns a String that represents the location where Microsoft Office Publisher templates are stored. Read-only.
Aa437544.properties(en-us,office.12).gif ValidateAddressVisible Determines whether Validate addresses is available under Refine recipients in the Mail Merge Recipients dialog box in the Microsoft Office Publisher user interface (UI); and whether Validate addresses is available under Prepare for Mailing on the Publisher Tasks task pane in the Publisher UI. Read/write.
Aa437544.properties(en-us,office.12).gif Version Returns a String indicating the version number of the currently-installed copy of Microsoft Office Publisher. Read-only.
Aa437544.properties(en-us,office.12).gif WebOptions Returns a WebOptions object, which represents the properties of Web publications. Read-only.
Aa437544.properties(en-us,office.12).gif WizardCatalogVisible Returns or sets a Boolean indicating whether the Wizard Catalog is visible. Read/write.

Events

  Name Description
Aa437544.events(en-us,office.12).gif AfterPrint This event is fired after all variables and fields have been printed. User interface control will not return to the user until the event handler is executed. The event will be called after all the drawing operations have been completed (in other words, after the software's job is completed and the printing hardware has taken over).
Aa437544.events(en-us,office.12).gif BeforePrint Occurs before the publication is printed or previewed. This event will fire only after the document has been fully loaded and the onload events have returned. Printing will not occur until the event handler has been executed.
Aa437544.events(en-us,office.12).gif DocumentBeforeClose Occurs immediately before any open document closes.
Aa437544.events(en-us,office.12).gif DocumentOpen Occurs when opening a document.
Aa437544.events(en-us,office.12).gif MailMergeAfterMerge Occurs after all records in a mail merge have merged successfully.
Aa437544.events(en-us,office.12).gif MailMergeAfterRecordMerge Occurs after each record in the data source successfully merges in a mail merge.
Aa437544.events(en-us,office.12).gif MailMergeBeforeMerge Occurs when a merge is executed before any records in a mail merge have merged.
Aa437544.events(en-us,office.12).gif MailMergeBeforeRecordMerge Occurs as a merge is executed for the individual records in a merge.
Aa437544.events(en-us,office.12).gif MailMergeDataSourceLoad Occurs when the data source is loaded for a mail merge.
Aa437544.events(en-us,office.12).gif MailMergeDataSourceValidate Occurs when a user performs address verification by clicking Validate in the Mail Merge Recipients dialog box.
Aa437544.events(en-us,office.12).gif MailMergeGenerateBarcode Occurs when Microsoft Office Publisher requires data to generate barcodes in a mail-merge publication, in particular when the mail-merge recipient list has changed.
Aa437544.events(en-us,office.12).gif MailMergeInsertBarcode Occurs when the user issues the command to insert postal barcodes into a mail-merge publication, either in the Microsoft Office Publisher user interface, or programmatically.
Aa437544.events(en-us,office.12).gif MailMergeRecipientListClose Fires when the user closes the Mail Merge Recipients dialog box. (From the Mail Merge or E-mail Merge task pane, click Edit Recipient List). Also fires when the user closes the Cataolg Merge Product List dialog box, which opens when the user clicks Edit Product List in the Catalog Merge task pane.
Aa437544.events(en-us,office.12).gif MailMergeWizardFollowUpCustom Fires when the string that appears as the fourth item under Prepare to follow-up on this mailing on the third Mail Merge task pane in the Microsoft Office Publisher user interface is clicked.
Aa437544.events(en-us,office.12).gif MailMergeWizardStateChange Occurs when a user changes from a specified step to a specified step in the Mail Merge Wizard.
Aa437544.events(en-us,office.12).gif NewDocument Occurs when a new publication is created.
Aa437544.events(en-us,office.12).gif Quit Occurs when the user quits Microsoft Office Publisher.
Aa437544.events(en-us,office.12).gif WindowActivate Occurs when the application window is activated.
Aa437544.events(en-us,office.12).gif WindowDeactivate Occurs when the application window is deactivated.
Aa437544.events(en-us,office.12).gif WindowPageChange Occurs when switching the view from one page to another page in a publication.