Table of contents
TOC
Collapse the table of content
Expand the table of content

WebCommandButton.DataRetrievalMethod Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Sets or returns a PbSubmitDataRetrievalMethodType that represents the way data from a Web form is processed. Read/write.

Syntax

expression. DataRetrievalMethod

_expression_A variable that represents a WebCommandButton object.

Return Value

PbSubmitDataRetrievalMethodType

Remarks

The DataRetrievalMethod property value can be one of the PbSubmitDataRetrievalMethodType constants declared in the Microsoft Publisher type library.

Example

This example sets Microsoft Publisher to process data on the Web form in the current publication by sending an e-mail message to a specified e-mail address.

Sub WebFormData() 
 With ThisDocument.Pages(1).Shapes(1).WebCommandButton 
 .DataRetrievalMethod = pbSubmitDataRetrievalEmail 
 .EmailAddress = "someone@example.com" 
 .EmailSubject = "Web form data" 
 End With 
End Sub
© 2018 Microsoft