DataFileFormat Property

Microsoft Publisher Visual Basic

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 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. (Note that Filename must be replaced with a valid file name for this example to work.)

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