DataFileFormat Property

       

Sets or returns a PbSubmitDataFormatType constant that represents the format to use when saving Web form data to a file. Read/write.

PbSubmitDataFormatType can be one of these PbSubmitDataFormatType constants.
pbSubmitDataFormatCSV Saves Web form data to a comma-delimited text file.
pbSubmitDataFormatHTML Saves Web form data to an HTML file.
pbSubmitDataFormatRichText Saves Web form data to a formatted file.
pbSubmitDataFormatTab Saves Web form data to a tab-delimited text file.

expression.DataFileFormat

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets Microsoft Publisher to process Web form data by saving it to a comma-delimited text file on the same Web server as the form is stored.

Sub WebDataFile()
    With ThisDocument.Pages(1).Shapes(1).WebCommandButton
        .DataRetrievalMethod = pbSubmitDataRetrievalSaveOnServer
        .DataFileFormat = pbSubmitDataFormatCSV
        .DataFileName = "WebFormData.txt"
    End With
End Sub