Share via


DataRetrievalMethod Property [Publisher 2003 VBA Language Reference]

PbSubmitDataRetrievalMethodType

PbSubmitDataRetrievalMethodType can be one of these PbSubmitDataRetrievalMethodType constants.
pbSubmitDataRetrievalEmail Processes form data by sending an e-mail message to a specified e-mail address.
pbSubmitDataRetrievalProgram Processes form data using a script program provided by your Internet Service Provider.
pbSubmitDataRetrievalSaveOnServer Saves form data to a file stored on your Web server.

expression.DataRetrievalMethod

expression Required. An expression that returns a WebCommandButton object.

Example

This example sets 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

Applies to | WebCommandButton Object